diff options
author | Akshay <[email protected]> | 2020-12-07 07:08:50 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2020-12-07 07:08:50 +0000 |
commit | 7c26160075af3ccd87e0029ecc0e09ad3ca2dc66 (patch) | |
tree | f836453db8b62f5304d3fdb13f66df5939771b0d /lib | |
parent | 0dc33cafed11aa4574f740b244d96060008ec714 (diff) |
shorten day07
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Utils.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Utils.hs b/lib/Utils.hs index 4c9a581..4319714 100644 --- a/lib/Utils.hs +++ b/lib/Utils.hs | |||
@@ -33,4 +33,4 @@ bet k (l, u) = k >= l && k <= u | |||
33 | (&+) = liftM2 (&&) | 33 | (&+) = liftM2 (&&) |
34 | 34 | ||
35 | howMany :: (a -> Bool) -> [a] -> Int | 35 | howMany :: (a -> Bool) -> [a] -> Int |
36 | howMany predicate = length . filter ((== True) . predicate) | 36 | howMany predicate = length . filter predicate |