From 656179e07857277c2e63789157e7b948f2c80114 Mon Sep 17 00:00:00 2001 From: Aleteoryx Date: Mon, 2 Dec 2024 13:15:18 -0500 Subject: optimize 2024.1; remember the language im using lol --- 2024/tcl/01.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2