diff options
author | Aleteoryx <alyx@aleteoryx.me> | 2024-12-02 13:15:18 -0500 |
---|---|---|
committer | Aleteoryx <alyx@aleteoryx.me> | 2024-12-02 13:15:18 -0500 |
commit | 656179e07857277c2e63789157e7b948f2c80114 (patch) | |
tree | 317ba6c9ef3ea72e595e9fa1d9178368dad03b23 | |
parent | 06366944524a30fcc496c82d0ff0e888ce7b7d9e (diff) | |
download | adventofcode-656179e07857277c2e63789157e7b948f2c80114.tar.gz adventofcode-656179e07857277c2e63789157e7b948f2c80114.tar.bz2 adventofcode-656179e07857277c2e63789157e7b948f2c80114.zip |
optimize 2024.1; remember the language im using lol
-rwxr-xr-x | 2024/tcl/01.tcl | 2 |
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 |