diff options
author | HJ <thechairman@thechairman.info> | 2023-12-17 20:35:20 -0500 |
---|---|---|
committer | HJ <thechairman@thechairman.info> | 2023-12-17 20:35:20 -0500 |
commit | 7709cc9954456195d9894e092aa8d23e42125a16 (patch) | |
tree | dbe8ef13b9bfd8fbbae2f98c94ab474c5598efb4 /aoc2021/day-15/day-15.rkt | |
parent | 96c8dd61ba3804ea97927342bf7660985afed9eb (diff) | |
parent | 9f0d9e4de0e6a69b9770b227f669af75667b8c90 (diff) | |
download | gleam_aoc-7709cc9954456195d9894e092aa8d23e42125a16.tar.gz gleam_aoc-7709cc9954456195d9894e092aa8d23e42125a16.zip |
Merge branch 'main' of https://github.com/hunkyjimpjorps/AdventOfCode
Diffstat (limited to 'aoc2021/day-15/day-15.rkt')
-rw-r--r-- | aoc2021/day-15/day-15.rkt | 5 |
1 files changed, 3 insertions, 2 deletions
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))))) |