aboutsummaryrefslogtreecommitdiff
path: root/06/1.tcl
diff options
context:
space:
mode:
authorMistivia <i@mistivia.com>2024-12-19 02:42:52 +0800
committerMistivia <i@mistivia.com>2024-12-19 02:42:52 +0800
commitf56a745129023bb6373b3b440dfba3054b083758 (patch)
tree021c2660eef559f33d22a4f921e4ba4e975ef4f6 /06/1.tcl
parent50ae6b52a9e5ed2b92453ecbea0c36a10b8dd2c6 (diff)
day 6 part 2
Diffstat (limited to '06/1.tcl')
-rw-r--r--06/1.tcl1
1 files changed, 1 insertions, 0 deletions
diff --git a/06/1.tcl b/06/1.tcl
index 49c41cf..90f1d4f 100644
--- a/06/1.tcl
+++ b/06/1.tcl
@@ -12,6 +12,7 @@ while {1} {
}
lappend map $line
}
+close $fp
proc char_at {x y} {
set line [lindex $::map $y]