Re:Streams in Java 8
by mbell on Sunday February 09, 2014 @08:08PM
(#7208443)
A lambda doesn't capture anything, it's just an anonymous function. A lambda can be a closure, but it doesn't have to be.
Closures come in two primary flavors, bind by value or bind by reference. Some languages implement only one of these, some implement both, some bind in completely different ways (e.g. lazy binding in Haskell).
Closures come in two primary flavors, bind by value or bind by reference. Some languages implement only one of these, some implement both, some bind in completely different ways (e.g. lazy binding in Haskell).