
21 Dec
2009
21 Dec
'09
2:47 p.m.
-------- Original-Nachricht --------
Datum: Mon, 21 Dec 2009 19:54:09 +0100 Von: Daniel Fischer
An: beginners@haskell.org CC: kane96@gmx.de Betreff: Re: [Haskell-beginners] print all days of calendar
Am Montag 21 Dezember 2009 17:39:49 schrieb kane96@gmx.de:
Prelude> :t filter filter :: (a -> Bool) -> [a] -> [a]
So we need a predicate on the type of list elements.
getMonth month cal = filter predicate cal where predicate (d,m,y) = ??
it has to match the given month and year. But don't know how to define it.
Does (==) ring a few bells?
not really... -- Preisknaller: GMX DSL Flatrate für nur 16,99 Euro/mtl.! http://portal.gmx.net/de/go/dsl02