Get flash to fully experience Pearltrees
In computer science , a closure (also lexical closure or function closure ) is a function or reference to a function together with a referencing environment —a table storing a reference to each of the non-local variables (also called free variables ) of that function. [ 1 ] A closure—unlike a plain function pointer —allows a function to access those non-local variables even when invoked outside of its immediate lexical scope . The concept of closures was developed in the 1960s and was first fully implemented in 1975 [ citation needed ] as a language feature in the Scheme programming language to support lexically scoped first-class functions .
Over the past 5 months, I’ve had the incredible opportunity at Revelytix to write Clojure every day and get paid for it. 5 months is an incredibly short time to pretend to have learned anything, but I can feel the beginnings of a style emerge in my programming and while writing a small program some ideas congealed into actual words that I thought I’d capture here. Update: Ugh. I really messed up. As it has been noted in the comments below, on Hacker News and even Twitter , my final solution is much (much) slower thanks to it’s not one, but two sorts. In the end, the whole thing is doubly redundant as clojure.contrib.seq-utils implemented a function ‘frequencies’ which will be in 1.2′s clojure.core. It uses ‘reduce’ and you should too.
by R. Mark Volkmann , Partner Object Computing, Inc. (OCI) last updated on 9/29/12
Skip to end of metadata Go to start of metadata Pre-requisites Java 6 (for running Eclipse, you can still use Java 5 for your projects) Install Eclipse
Downloads Unix The only file you need to download manually is config.tgz . Unpack, configure by editing config/targets , and install by running config/install.sh .