Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert and add air quotes ;)
  • Loading branch information
hhandoko committed Sep 13, 2017
commit 9803b0943d9028751d649d74426f0c4c9ce7a8a1
8 changes: 3 additions & 5 deletions exercises/intro/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -494,11 +494,9 @@ anymore, which is now the responsibility of `map`.
Collection API
--------------

We have gone to some length to describe some basic collection operations such
as `fold` and `map`. Because these operations are very commonly used, Scala
provided them in the standard library as part of the collections API. So let's
perform one final refactoring to swap our own implementation with ones from the
standard library:
"By a lucky coincidence", Scala standard library collection API already provides
most of the functions that we've just discovered. It would be a shame not to
use them:

```scala
def isEven(x: Int): Boolean = x % 2 == 0
Expand Down