Will I be able to use Clojure functions as Lambdas in Java 8?

前端 未结 2 911
一整个雨季
一整个雨季 2021-02-19 11:14

I use a number of libraries in Clojure that produce higher order functions that conform to the \"clojure.lang.IFn\" interface.

It has multiple arity overloads, I.e. the

2条回答
  •  感动是毒
    2021-02-19 12:02

    No, it seems you can not use clojure functions as if they are also valid java lambdas. Clojure's IFn does not conform to java's "lambda" functional interfaces as defined.

提交回复
热议问题