From fcb8e19236de3d1b14a24df42e5db8fd891069c8 Mon Sep 17 00:00:00 2001 From: Adam Millerchip Date: Tue, 1 Dec 2020 14:47:20 +0900 Subject: [PATCH] Add after-thought for day 1 --- day1/README | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/day1/README b/day1/README index dd58507..f415ed0 100644 --- a/day1/README +++ b/day1/README @@ -23,3 +23,10 @@ Thoughts: Use a comprehension over two versions of the remaining list to efficiently compare the three items. +Would have been simpler to use a comprehension for all 3 elements (and for the 2 elements from part 1) +rather than using recursion for the outer loop. + +E.g. + + for i <- list, j <- list, k <- list, do: ... +