Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Monads are EDSLs: do { [1,2,3] ; [4,5] } =>
do { x <- [1,2,3] ; do { y <- [4,5] ; return y }} =>
{for x in [1,2,3] : {for y in [4,5] : {yield y}}} => [4,5,4,5,4,5]
By clicking βAccept all cookiesβ, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.