
7 Jan
2016
7 Jan
'16
5:43 p.m.
For pattern matching.. I implemented like this.
compareName a (Person name age)
| (a == name) = age
but, I got stuck how to apply pattern matching for the two lists.
i.e., both names and persons are lists.
I really appreciate your advice..
On Thu, Jan 7, 2016 at 5:37 PM, Imants Cekusins
filter is only applicable to list, not "record syntax".
but [Person] is the input, isn't it?
Do I need functor for this??
no need to define new functor instance to filter over a list of records.
but you could use fmap over list, yes
_______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners