Created
December 1, 2020 16:44
-
-
Save dvanhorn/3ebead7dbb8f07dcc081916e39a70e2c to your computer and use it in GitHub Desktop.
Advent of Code, Day 1, Part II
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang racket | |
(define in '(...)) | |
(for*/first ([i (in-list in)] | |
[j (in-list in)] | |
[k (in-list in)] | |
#:when (= (+ i j k) 2020)) | |
(* i j k)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment