Skip to content
Open
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 ch01.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Flock {
}

breed(other) {
this.seagulls = this.seagulls * other.seagulls;
this.seagulls = this.seagulls + other.seagulls + other.seagulls;
return this;
}
}
Expand All @@ -43,7 +43,7 @@ const result = flockA
.breed(flockB)
.conjoin(flockA.breed(flockB))
.seagulls;
// 32
// 24
```

Who on earth would craft such a ghastly abomination? It is unreasonably difficult to keep track of the mutating internal state. And, good heavens, the answer is even incorrect! It should have been `16`, but `flockA` wound up permanently altered in the process. Poor `flockA`. This is anarchy in the I.T.! This is wild animal arithmetic!
Expand Down