[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: mapping (Was: Re: Re: . in for)

Subject: Re: mapping (Was: Re: Re: . in for)
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Thu, 10 Jan 2002 05:39:15 -0800 (PST)
 Re: mapping (Was: Re: Re: . in for)
Joerg Pietschmann <joerg dot pietschmann at zkb dot ch> wrote: 


> This means you want lambda expressions.
> >  - define a map expression (rather than a map() function)
> Note that in you proposal of a mapping operator
>   $coordinates -> (. * 2)
> the second operand actually *is* already a lambda expression. Hint:
> the . is not bound to the value of the context node as it would
> have been in ordinary expressions.
> We can argue about inventing an XPath function xf:lambda() for this
> purpose, with all the consequences. I'd probably like it to have one,
> but i let it to Dmitre to make up the full proposal... :-)

I already noticed that Jeni's "mapping operator" is in fact lambda expression.

However, why make a special proposal for lambda expressions. The surprisingly
energetic response indicates that what people want (and nobody stood against this)
is support for higher-order functions in XPath 2.0. Having higher-order functions in
place, anonymous functions (lambda expressions) will naturally come as an added
benefit or just as a convenient shorthand. 


Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.