No parens

This commit is contained in:
Daniel Flanagan 2020-12-06 00:17:17 -06:00
parent 0956d914c7
commit b861e02a51
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4

View file

@ -7,4 +7,4 @@ proc part1*(s: Stream): int =
s.asGroups.mapIt(it.foldl(a.union(b.toHashSet), initHashSet[char]()).len).foldl a + b s.asGroups.mapIt(it.foldl(a.union(b.toHashSet), initHashSet[char]()).len).foldl a + b
proc part2*(s: Stream): int = 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