Permalink
Browse files

Merge pull request #27 from bowmanb/master

a couple fixes for compilation errors
  • Loading branch information...
2 parents e566bb1 + 68ddd75 commit 073661aa5665fab2aad5b1401fdf236684b6b43d @lahosken lahosken committed Aug 9, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 web/_posts/2011-05-03-lesson.textile
@@ -91,7 +91,7 @@ Map(1 -> Map("foo" -> "bar"))
</pre>
<pre>
-Map("timesTwo" -> timesTwo(_))
+Map("timesTwo" -> { timesTwo(_) })
</pre>
h3. Option
@@ -328,7 +328,7 @@ res0: List[Int] = List(2, 4, 6, 8)
Think of it as short-hand for mapping and then flattening:
<pre>
-scala> nestedNumbers.map(x: List[Int] => x.map(_ * 2)).flatten
+scala> nestedNumbers.map((x: List[Int]) => x.map(_ * 2)).flatten
res1: List[Int] = List(2, 4, 6, 8)
</pre>

0 comments on commit 073661a

Please sign in to comment.