
22 May
2020
22 May
'20
8:02 p.m.
maxinumBy::(Foldable t, Ord a) => t a -> a maxinumBy = foldr1 max
Hi,
I want to re-write a function maximumBy (its an assignment).
However, I don't get how it works.
maximumBy compare [1,53,9001, 10] 9001
but what does it actually do to get there?
thanks in advance.
best,
1823
Age (days ago)
1823
Last active (days ago)
0 comments
1 participants
participants (1)
-
nowsnow