Here's some pages from a DuckDuckGo search (they've been giving me higher quality results, recently, than Google), with some notes on the "lambda" topic, and its relationship to "Lexical Closure". Strip off the #J from the url to get to the table of contents for easy access to other language implementations:
http://rosettacode.org/wiki/Y_combinator#J Y_combinator (along with the K and S combinators) are classic examples of lambda calculus. And in this context, we need something closer to Scheme's lambda. So the J implementation here shows two ways of implementing something that work's enough like a Scheme lambda to complete the task. There's no Kona or K implementation, here, but there are plenty of implementations in other languages. http://rosettacode.org/wiki/Function_composition#J You brought up this page in another context, and it relates at least to the "anonymous function" aspect of lambdas, but is independent of the issue of "lexical closure". http://rosettacode.org/wiki/Anonymous_recursion#J Here's another example that relates to a classic "lambda" topic. It's the sort of thing that drove people to implement the Y_combinator mechanism. (Personally, I think that anonymous recursion is overrated - for most practical purposes, primitive recursion is sufficient,. Then again, people like to mess things up, and for that purpose you need more complication and less useful work.) Plus, this example has a K implementation http://rosettacode.org/wiki/Closures/Value_capture#J Pretty much directly relates to https://github.com/kevinlawler/kona/issues/220 http://rosettacode.org/wiki/Call_an_object_method#J There's a strong relationship between calling a method on an object and calling a lambda with static lexical closure (the underlying concepts are quite similar). http://rosettacode.org/wiki/Apply_a_callback_to_an_Array#J http://rosettacode.org/wiki/Higher-order_functions#J These two also relate to the classic concept of a "lambda", though neither had any need for lexical closure. Thanks, -- Raul On Fri, Mar 21, 2014 at 12:55 PM, Brian Schott <[email protected]>wrote: > I searched rosettacode.org for lambda, but was mostly disappointed with > the > search, except perhaps the following link. The occurrences of lambda on > that page occur only for some languages, and notably Lisp is not on that > page. > > http://rosettacode.org/wiki/Higher-order_functions > > -- > (B=) > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
