summaryrefslogtreecommitdiff
path: root/Day1.lean
diff options
context:
space:
mode:
authorAndreas Grois <andi@grois.info>2025-11-16 21:08:35 +0100
committerAndreas Grois <andi@grois.info>2025-11-16 21:08:35 +0100
commit3a9ff92902df508074daa3017d1a71dae7e85248 (patch)
tree3ddc5f4dc040ce2aa762c642569ff274f36049e7 /Day1.lean
parent75628f029abfd9829a1259a6e1dd7758d548c13f (diff)
Lean 4.25feature/day17
Diffstat (limited to 'Day1.lean')
-rw-r--r--Day1.lean2
1 files changed, 1 insertions, 1 deletions
diff --git a/Day1.lean b/Day1.lean
index d9f0c69..6943254 100644
--- a/Day1.lean
+++ b/Day1.lean
@@ -3,7 +3,7 @@ import Common
namespace Day1
def parse (input : String) : List String :=
- input.split Char.isWhitespace |> List.filter (not ∘ String.isEmpty)
+ input.splitToList Char.isWhitespace |> List.filter (not ∘ String.isEmpty)
-- Both parts could still be improved by doing two searches, one from the left, one from the right