Skip to content

Instantly share code, notes, and snippets.

@dvanhorn
Created December 1, 2020 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dvanhorn/3ebead7dbb8f07dcc081916e39a70e2c to your computer and use it in GitHub Desktop.
Save dvanhorn/3ebead7dbb8f07dcc081916e39a70e2c to your computer and use it in GitHub Desktop.
Advent of Code, Day 1, Part II
#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