diff options
Diffstat (limited to '2024/tcl/lib.tcl')
-rw-r--r-- | 2024/tcl/lib.tcl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/2024/tcl/lib.tcl b/2024/tcl/lib.tcl new file mode 100644 index 0000000..d816a25 --- /dev/null +++ b/2024/tcl/lib.tcl @@ -0,0 +1,9 @@ +proc setup {n} { + puts "Advent of Code 2024 day $n Solution" + puts "<https://adventofcode.com/2024/day/$n>" + puts "" + + set n [string range 0$n end-1 end] + upvar input input + set input [open input.$n.txt] +} |