summaryrefslogtreecommitdiffstats
path: root/2024/tcl
diff options
context:
space:
mode:
authorAleteoryx <alyx@aleteoryx.me>2024-12-02 13:15:18 -0500
committerAleteoryx <alyx@aleteoryx.me>2024-12-02 13:15:18 -0500
commit656179e07857277c2e63789157e7b948f2c80114 (patch)
tree317ba6c9ef3ea72e595e9fa1d9178368dad03b23 /2024/tcl
parent06366944524a30fcc496c82d0ff0e888ce7b7d9e (diff)
downloadadventofcode-656179e07857277c2e63789157e7b948f2c80114.tar.gz
adventofcode-656179e07857277c2e63789157e7b948f2c80114.tar.bz2
adventofcode-656179e07857277c2e63789157e7b948f2c80114.zip
optimize 2024.1; remember the language im using lol
Diffstat (limited to '2024/tcl')
-rwxr-xr-x2024/tcl/01.tcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/2024/tcl/01.tcl b/2024/tcl/01.tcl
index 462a7a9..2248e11 100755
--- a/2024/tcl/01.tcl
+++ b/2024/tcl/01.tcl
@@ -6,7 +6,7 @@ setup 1
puts {Part 1: Find the sum of distances between pairs of numbers with the same ordinal in each list.}
while {[gets $input line] != -1} {
- lassign [regexp -inline -all {\d+} $line] ln rn
+ lassign $line ln rn
lappend left_nums $ln
lappend right_nums $rn