aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-12-07 07:08:50 +0000
committerAkshay <[email protected]>2020-12-07 07:08:50 +0000
commit7c26160075af3ccd87e0029ecc0e09ad3ca2dc66 (patch)
treef836453db8b62f5304d3fdb13f66df5939771b0d /lib
parent0dc33cafed11aa4574f740b244d96060008ec714 (diff)
shorten day07
Diffstat (limited to 'lib')
-rw-r--r--lib/Utils.hs2
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
35howMany :: (a -> Bool) -> [a] -> Int 35howMany :: (a -> Bool) -> [a] -> Int
36howMany predicate = length . filter ((== True) . predicate) 36howMany predicate = length . filter predicate