From 6aaa70943202efaa1e6b4ff8b6b8b6b94a564040 Mon Sep 17 00:00:00 2001
From: Andreas Grois <andi@grois.info>
Date: Sun, 12 Oct 2025 18:44:32 +0200
Subject: Lean 4.19

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

(limited to 'Day3.lean')

diff --git a/Day3.lean b/Day3.lean
index 00ef709..ae9cd2d 100644
--- a/Day3.lean
+++ b/Day3.lean
@@ -92,7 +92,7 @@ def parse (schematic : String) : Except String Schematic := do
 def part1 (schematic : Schematic) : Nat :=
   -- fast lookup: We need to know if a part is at a given coordinate
   open Std(HashSet) in
-  let partCoordinates := HashSet.insertMany HashSet.empty $ schematic.parts.map Part.position
+  let partCoordinates := HashSet.insertMany HashSet.emptyWithCapacity $ schematic.parts.map Part.position
   let partNumbers := schematic.numbers.filter λnumber ↦
     number.positions.any λposition ↦
       position.adjacents.any partCoordinates.contains
-- 
cgit v1.2.3

