Thanks a lot for this lesson !
Have a good week-end,
Christophe
Well, it's not very clear to me...
> contains(?, "e") returns a single-argument function which tests whether a given string contains the letter "e".
Does it generates a function fn(s) which returns s.contains("e") ?
Almost: it returns an anonymous function, which we might call fn so that we can talk about it, such that fn(s) returns fn(s, "e").
Functional programming seems to be strange...


For most of us, there was a time was programming seemed to be strange full stop. It takes a little getting used to, but like object programming, it's incredibly powerful once mastered.
Sure !

Michael Kay
Saxonica
------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ saxon-help@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/saxon-help