Skip to content

Commit

Permalink
Clean up some clunky language.
Browse files Browse the repository at this point in the history
  • Loading branch information
non committed Sep 12, 2016
1 parent 9441e81 commit fcbeb35
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,9 @@ def firstInt(xs: List[Int]): Option[Int] = xs.headOption
def firstGeneric[A](xs: List[A]): Option[A] = xs.headOption
```

But we can only represent the first method (`firstInt`) as an
anonymous function value:
We can implement both of these methods. We'd like to be able to
rewrite each of these as a function value, but we can only represent
the first method (`firstInt`) this way:

```scala
val firstInt0: List[Int] => Option[Int] = _.headOption
Expand Down

0 comments on commit fcbeb35

Please sign in to comment.