diff options
author | Hunky Jimpjorps <thechairman@thechairman.info> | 2022-11-26 01:43:33 -0500 |
---|---|---|
committer | Hunky Jimpjorps <thechairman@thechairman.info> | 2022-11-26 01:43:33 -0500 |
commit | feccf3f6f0a806b3317d1f399e3e8b42945c4f09 (patch) | |
tree | bf15ce045d1106c1b7f7de30c27540f40d0bf947 /2020/day-03 | |
parent | 8b624fe7d2751337b1f16830cc9c041df73e99e7 (diff) | |
download | gleam_aoc-feccf3f6f0a806b3317d1f399e3e8b42945c4f09.tar.gz gleam_aoc-feccf3f6f0a806b3317d1f399e3e8b42945c4f09.zip |
using raco fmt, replacing missing dependency
Diffstat (limited to '2020/day-03')
-rw-r--r-- | 2020/day-03/day-03.rkt | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/2020/day-03/day-03.rkt b/2020/day-03/day-03.rkt index f540ee6..ee9edcf 100644 --- a/2020/day-03/day-03.rkt +++ b/2020/day-03/day-03.rkt @@ -7,16 +7,10 @@ #:when (= 0 (modulo i rise)) [possible-tree (in-value (sequence-ref (in-cycle row) (* (/ run rise) i)))] #:when (and (char=? possible-tree #\#))) - 1)) + 1)) ;; part 1 (check-for-trees 3 1) ;; part 2 -(~>> '((1 1) - (3 1) - (5 1) - (7 1) - (1 2)) - (map (curry apply check-for-trees)) - (apply *))
\ No newline at end of file +(~>> '((1 1) (3 1) (5 1) (7 1) (1 2)) (map (curry apply check-for-trees)) (apply *)) |