[Haskell-beginners] problem with type
Brandon Allbery
allbery.b at gmail.com
Sun Jun 17 02:46:07 CEST 2012
On Sat, Jun 16, 2012 at 8:39 PM, miro <miroslav.karpis at gmail.com> wrote:
> Am a bit stuck here,... please, what is wrong with this?
>
> checkNode :: String -> [String] -> Bool
> checkNode s nodes =
> [s == node | node <- nodes ]
>
This is going to return a *list* of Bools, one per String in the original
list.
--
brandon s allbery allbery.b at gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20120616/17293864/attachment.htm>
More information about the Beginners
mailing list