Skip to content

Instantly share code, notes, and snippets.

@Ayeeta
Created August 4, 2020 09:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ayeeta/edd97308dfa4b3e58dea62e29ff3bd52 to your computer and use it in GitHub Desktop.
Save Ayeeta/edd97308dfa4b3e58dea62e29ff3bd52 to your computer and use it in GitHub Desktop.
About lamda expressions
val area = {l: Int, w: Int -> l * w}
println(area(6,4))
val areaOption :(Int, Int) -> Int = {l, w -> l*w}
println(areaOption(6,4))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment