Paste: AOC day 6

Author: chunes
Mode: factor
Date: Sun, 6 Dec 2020 13:35:29
Plain Text |
USING: io.encodings.ascii io.files kernel literals prettyprint
regexp sequences sets splitting ;

"input.txt" ascii file-lines { "" } split dup
[ combine length ] map-sum .
[ intersection length ] map-sum .

New Annotation

Summary:
Author:
Mode:
Body: