From b861e02a512ee4da0b3098076c9c192eaecfdfac Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Sun, 6 Dec 2020 00:17:17 -0600 Subject: [PATCH] No parens --- 2020/src/day6.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2020/src/day6.nim b/2020/src/day6.nim index 40d18dd..5a75649 100644 --- a/2020/src/day6.nim +++ b/2020/src/day6.nim @@ -7,4 +7,4 @@ proc part1*(s: Stream): int = s.asGroups.mapIt(it.foldl(a.union(b.toHashSet), initHashSet[char]()).len).foldl a + b proc part2*(s: Stream): int = - s.asGroups.mapIt(it.foldl(a.intersection(b.toHashSet), toSeq('a'..'z').toHashSet).len).foldl(a + b) + s.asGroups.mapIt(it.foldl(a.intersection(b.toHashSet), toSeq('a'..'z').toHashSet).len).foldl a + b