Skip to content

Commit 313c205

Browse files
authored
Update README.md
1 parent 1f5b180 commit 313c205

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ The result type parameter (`R` in `Monad<M, R`) is usually inferred, and the com
139139
val m = doReturning(MonadListReturn) {
140140
for (i in 1..10)
141141
bind(monadListOf(0, 0))
142+
returns(0)
142143
} as MonadList
143144
144145
One would expect 1024 items here, but the result only contains 11! That's because `i` is mutable and is shared between all the calls that `bind` makes.

0 commit comments

Comments
 (0)