Skip to content

Update breakOut.md fix type error #1388

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 21, 2019
Merged
Changes from all commits
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
4 changes: 2 additions & 2 deletions _overviews/FAQ/breakout.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ chain, we find that the types passed to `TraversableLike`, and, thus, used by

Going back to the example, the first map is receiving a function of type
`((Int, String)) => (Int, Int)` and the second map is receiving a function of
type `((Int, String)) => Int`. I use the double parenthesis to emphasize it is
type `((Int, String)) => String`. I use the double parenthesis to emphasize it is
a tuple being received, as that's the type of `A` as we saw.

With that information, let's consider the other types.
Expand All @@ -163,7 +163,7 @@ With that information, let's consider the other types.
B = (Int, Int)

map (_._2):
B = Int
B = String

We can see that the type returned by the first `map` is `Map[Int,Int]`, and the
second is `Iterable[String]`. Looking at `map`'s definition, it is easy to see
Expand Down