From 05189aa162c291ae79a2fb99ec1bfe218ce7e4a7 Mon Sep 17 00:00:00 2001 From: Andrew Ekstedt Date: Wed, 30 Nov 2022 22:10:06 -0800 Subject: [PATCH] maybe slightly more elegant solution --- day01/sol.ivy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/day01/sol.ivy b/day01/sol.ivy index 40aca65..b13957d 100644 --- a/day01/sol.ivy +++ b/day01/sol.ivy @@ -4,5 +4,5 @@ max/ +/ input # part 2 -sums = +/ input -+/ sums[3 take down sums] +op n top v = v[n take down v] ++/ 3 top +/input