[Haskell-beginners] Code golf
Tilmann
t_gass at gmx.de
Thu May 19 13:34:17 UTC 2016
this is nice, thanks! What if a and b are of different types? I
simplified my example to much..
Am 19.05.16 um 15:22 schrieb Imants Cekusins:
> if 'update' were changed to
> update :: [String] -> IO ()
>
> then you could do:
> doIt :: IO ()
> doIt = sequence [inputA,inputB] >>= update
>
> is this better?
>
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20160519/4e597f43/attachment.html>
More information about the Beginners
mailing list