[Haskell-beginners] Longest common prefix of a list of lists
Christopher Done
chrisdone at googlemail.com
Sat Apr 30 04:54:59 CEST 2011
On 30 April 2011 01:10, aditya siram <aditya.siram at gmail.com> wrote:
>
> I didn't like using 'fromJust' but I don't see how it
> can throw an exception in this case.
>
λ> catMaybes [Just 1,Nothing,Just 2]
[1,2]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20110430/afef2f3f/attachment.htm>
More information about the Beginners
mailing list