Lambda expressions of .NET in Java

Fakrudeen picture Fakrudeen · Jan 23, 2011 · Viewed 7.7k times · Source

I recently moved from C# to Java [again]. But I badly miss lambda expressions and things like IEnumerable.Foreach of C#. So I am looking for a lambda expression library in Java.

are there better libraries than LambdaJ?

Also is clojure directly inlinable in Java programs? That is can I mix clojure code in Java functions?

Answer

Aravind Yarram picture Aravind Yarram · Jan 23, 2011

Java 8 might have lambda support natively. Until then you can use a combination of anonymous inner classes and libraries like google-guava. Below are other libraries that you can look into

Or better look at Scala