Skip to content

Instantly share code, notes, and snippets.

@sagarpatel288
Last active April 23, 2020 12:59
Show Gist options
  • Save sagarpatel288/e2e498f6efbb93b37a5ca8979ba4516d to your computer and use it in GitHub Desktop.
Save sagarpatel288/e2e498f6efbb93b37a5ca8979ba4516d to your computer and use it in GitHub Desktop.
Syntax of a Lambda expression
//nameOfTheLambda: function type = { comma separated pascal parameters -> business logic }
val lambda: (Int, Int): Int = { x: Int, y: Int -> x + y }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment