Michael
06/26/2018, 2:29 PMfunc: Function<Foo, Bar>
. Elsewhere in the code, when calling it, I’m trying to pass in { it.baz }
where it is type Foo, and baz is type Bar. But it’s giving me unresolved reference: it
and saying that the type of the lambda is () -> [ERROR:]
. If I prefix it with the word Function, Function { it.baz}
it works.Andreas Sinz
06/26/2018, 2:51 PMFunction<Foo, Bar>
is a java interface?Michael
06/26/2018, 3:10 PMFunction<Foo, Bar>
with (Foo) -> Bar