Five weekends: Difference between revisions

Content added Content deleted
(→‎{{header|Haskell}}: Added an example using the standard Data.Time libraries)
(→‎Haskell – Using Data.Time: Adjusted a couple of names for easier reading)
Line 3,000: Line 3,000:
let (_, _, day) = toWeekDate d
let (_, _, day) = toWeekDate d
in day == 5
in day == 5



-- TEST -----------------------------------------------------------------------
-- TEST -----------------------------------------------------------------------
Line 3,010: Line 3,010:
concat $
concat $
zipWith
zipWith
(\a b ->
(\months year ->
[ b
[ year
| null a ])
| null months ])
xs
xs
years
years