fn hello (...params) {
}
var lambda = fn (...params ) { ... }
kotlin alternatives:
let hello = { (...params) => body}
There seems to be no ambiguity.
xs.map(fn (x) { x + 1 })
vs
xs.map({ (x)=> x + 1 })
fn hello (...params) {
}
var lambda = fn (...params ) { ... }
kotlin alternatives:
let hello = { (...params) => body}
There seems to be no ambiguity.
xs.map(fn (x) { x + 1 })
vs
xs.map({ (x)=> x + 1 })