-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
关于Java调用Pudding.create 时,如何使用高阶函数的问题 #2
Comments
还是只能在kotlin中使用?谢谢 |
第二个参数是kotlin中的高阶函数,就是如果lambda是参数的最后一位,可以提到括号外面,create后面跟的花括号就是它的第二个参数,具体的高阶函数和Java交互的写法不是很友好,还是推荐Kotlin 使用 感谢使用 |
接上面,高阶函数(lambda 作为参数)在java中的体现 是一个继承了 Function接口 的接口,不同数量的参数会体现为Function0、Function1<in P1, out R>等等。
|
Still not work on Java 7/8,org.objectweb.asm may help (gen proxy/jmethod)... |
create方法里面两个参数,但是你的代码里面是一个参数。用不成。
The text was updated successfully, but these errors were encountered: