From 7213ca083d121bb9e6876d2ddb4b25ee09d954bb Mon Sep 17 00:00:00 2001 From: "J.J" Date: Sun, 17 Dec 2023 20:33:33 -0500 Subject: running updated gleam formatter --- aoc2021/day-15/day-15.rkt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'aoc2021') diff --git a/aoc2021/day-15/day-15.rkt b/aoc2021/day-15/day-15.rkt index 5e61c55..6ab67b1 100644 --- a/aoc2021/day-15/day-15.rkt +++ b/aoc2021/day-15/day-15.rkt @@ -1,12 +1,13 @@ #lang racket -(require "../../jj-aoc.rkt" +(require advent-of-code threading graph) (struct Point (x y) #:transparent) (define data - (for/fold ([cells (hash)]) ([row (in-lines (open-day 15 2021))] [x (in-naturals)]) + (for/fold ([cells (hash)]) + ([row (in-lines (open-aoc-input (find-session) 2021 15 #:cache #true))] [x (in-naturals)]) (for/fold ([cells cells]) ([n (in-string row)] [y (in-naturals)]) (hash-set cells (Point x y) (~> n string string->number))))) -- cgit v1.2.3