[Haskell-beginners] Trouble understanding the type of sequence [Just, Just]
Imants Cekusins
imantc at gmail.com
Sat Dec 12 21:07:18 UTC 2015
> when we call sequence [Just 1, Just 2] we should get back
a Just of [1,2]. Following that train of thoughts, shouldn't sequence
[Just, Just] return a single Just?
What would sequence [Just 1, Nothing] return in this case? Just 1 and
Nothing are of the same type - they must be: they are part of the same list.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20151212/db3bf3f9/attachment.html>
More information about the Beginners
mailing list