Any ideas how to make this prototype work: ```fun ...
# getting-started
d
Any ideas how to make this prototype work:
Copy code
fun myMethod(): java.util.function.Function<Int,String> {
   return {  value: Int ->
      if(value == 42) "42" else ""
   } as Function<Int,String>  // heh
}
Perfect that compiles nicely, thanks!
👍🏿 1