[Haskell-cafe] Newbie list question

junkywunky junkywunky at hotmail.com
Sun May 27 04:53:49 EDT 2007


type Person = (NI, Age, Balance)
type Bank = [Person]

credit :: Bank -> [Person]
credit [(a,b,c)] = [(a,b,c)]

This code works when I type in:

credit [(1,2,3)]

but doesn't work when I type in:

credit [(1,2,3),(4,5,6)]

Any help?

Thanks in advance.
-- 
View this message in context: http://www.nabble.com/Newbie-list-question-tf3823011.html#a10823175
Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.



More information about the Haskell-Cafe mailing list