From feccf3f6f0a806b3317d1f399e3e8b42945c4f09 Mon Sep 17 00:00:00 2001 From: Hunky Jimpjorps Date: Sat, 26 Nov 2022 01:43:33 -0500 Subject: using raco fmt, replacing missing dependency --- 2020/day-03/day-03.rkt | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to '2020/day-03/day-03.rkt') 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 *)) -- cgit v1.2.3