Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
object Test extends App {
val func = (a: Int) => a + 1
def funcd(a: Int) = a + 1
val inc = funcd _
List(1, 2, 3, 4, 5).map(func)
List(1, 2, 3, 4, 5).map(funcd)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment