Skip to main content
deleted 2 characters in body
Source Link
Seggan
  • 3.4k
  • 12
  • 47

Kotlin style

The full syntax is

{ (a: Foo, b: Bar) -> body() } 

The type annotations may be omitted, and if there is only one parameter, that can be omitted and replaced with the implicit parameter it:

{ it.bar() } 

Kotlin style

The full syntax is

{ (a: Foo, b: Bar) -> body() } 

The type annotations may be omitted, and if there is only one parameter, that can be omitted and replaced with the implicit parameter it:

{ it.bar() } 

Kotlin style

The full syntax is

{ a: Foo, b: Bar -> body() } 

The type annotations may be omitted, and if there is only one parameter, that can be omitted and replaced with the implicit parameter it:

{ it.bar() } 
Source Link
Seggan
  • 3.4k
  • 12
  • 47

Kotlin style

The full syntax is

{ (a: Foo, b: Bar) -> body() } 

The type annotations may be omitted, and if there is only one parameter, that can be omitted and replaced with the implicit parameter it:

{ it.bar() }