Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
val increment: Int => Int = (x: Int) => x + 1
println(increment(5)) // Prints 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.