Skip to content

Commit ec6710f

Browse files
Clarify what causes nesting in Array's Bind instance explanation
1 parent 0bfaad0 commit ec6710f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Control/Bind.purs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ infixr 1 bindFlipped as =<<
6363
instance bindFn :: Bind ((->) r) where
6464
bind m f x = f (m x) x
6565

66-
-- | The `Array` monad's "do notation" works like a nested for loop:
66+
-- | The `Array` monad's "do notation" works like a nested for loop. Each
67+
-- | `bind`/`elem <- array` adds another level of nesting in the loop:
6768
-- | ```
6869
-- | foo :: Array Int
6970
-- | foo = do

0 commit comments

Comments
 (0)