1
0
Fork 0
advent-of-code/2020/06/part1.hs
Sloane Perrault e40944b22d solve: day 6
- solve: day 6, part 1
 - solve: day 6, part 2
2022-09-21 09:19:52 -04:00

10 lines
163 B
Haskell
Executable file

#!/usr/bin/env runghc
import Day6
import Data.Set (fromList, size)
main = interact (show . solve . parse)
solve = sum . map size
parse = map fromList . lines'