From ce7214e07a766bc1e5ab02346e42eb6ca441c509 Mon Sep 17 00:00:00 2001
From: Andreas Grois <andi@grois.info>
Date: Fri, 22 Nov 2024 22:10:48 +0100
Subject: Fix deprecation warnings for Lean 4.13

---
 Day2.lean | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'Day2.lean')

diff --git a/Day2.lean b/Day2.lean
index 7ed10aa..db85003 100644
--- a/Day2.lean
+++ b/Day2.lean
@@ -71,7 +71,7 @@ def part1 (games : List Game) : Nat :=
 def part2 (games : List Game) : Nat :=
   let powerOfGame := λ (g : Game) ↦
     let minReq := λ (c : Draw Nat → Nat) ↦
-      g.draw.map c |> List.maximum? |> flip Option.getD 0
+      g.draw.map c |> List.max? |> flip Option.getD 0
     minReq Draw.red * minReq Draw.green * minReq Draw.blue
   let powers := games.map powerOfGame
   powers.foldl Nat.add 0
-- 
cgit v1.2.3

