|
|
|
|
|
by jabagawee
4391 days ago
|
|
Oh! So `go` is a function that's defined within `shift`. That's the crucial part I was missing. Why is it named "go"? EDIT: While I have your attention, do you mind also pointing me to some resources to learn about this ">>=" operator? I recall it's something related to monads... |
|
As for `>>=` (also known as `bind`), I'm using it as a more generic version of `concatMap`. The following expressions are basically the same:
If you want to learn more, check out LYAH [1].[1]: http://learnyouahaskell.com/a-fistful-of-monads