From 28f7fcb605ec9697bd3f41fb8bc0413fc79a9250 Mon Sep 17 00:00:00 2001 From: Andrew Ekstedt Date: Sat, 10 Dec 2022 11:52:08 -0800 Subject: [PATCH] day 10 ivy tweak --- day10/sol.ivy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/day10/sol.ivy b/day10/sol.ivy index 337130c..58d793a 100644 --- a/day10/sol.ivy +++ b/day10/sol.ivy @@ -3,9 +3,9 @@ op run ins = ((1 + ins != 0), 0) sel +\ 1, ins -op signal xs = - n = rho xs - i = (20 == (iota n) mod 40) sel iota n +op signal xs = + cycle = iota rho xs + i = (20 == cycle mod 40) sel cycle +/ xs[i] * i op render xs =