Skip to content

Commit

Permalink
add to Monad ifM example
Browse files Browse the repository at this point in the history
I found this section pretty confusing, but cleared up my misunderstanding quickly in the console.
This extra line in the example might help make it clear to people what is going on.
  • Loading branch information
sullivan- committed Mar 1, 2017
1 parent a0c6f59 commit d8b28fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/src/main/tut/typeclasses/monad.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ statement into the monadic context.
```tut:book
import cats.implicits._
Monad[List].ifM(List(true, false, true))(List(1, 2), List(3, 4))
Monad[List].ifM(List(true, false, true))(ifTrue = List(1, 2), ifFalse = List(3, 4))
Monad[List].ifM(List(true, false, false))(ifTrue = List(1, 2), ifFalse = List(3, 4))
```

### Composition
Expand Down

0 comments on commit d8b28fa

Please sign in to comment.