Skip to content

Instantly share code, notes, and snippets.

@tpolecat
Created September 18, 2013 21:15
Show Gist options
  • Save tpolecat/6615828 to your computer and use it in GitHub Desktop.
Save tpolecat/6615828 to your computer and use it in GitHub Desktop.
scala> def a: Any = List(1,2,3).map(x => x + 1)
a: Any
scala> def b: Any = List(1,2,3).map(x => return x + 1)
b: Any
scala> a
res1: Any = List(2, 3, 4)
scala> b
res2: Any = 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment