diff options
author | bd <bdunahu@gmail.com> | 2024-06-10 21:03:08 -0600 |
---|---|---|
committer | bd <bdunahu@gmail.com> | 2024-06-10 21:03:08 -0600 |
commit | 5745b2875046d0bbe3bf25f1d03a297b624c55c6 (patch) | |
tree | ad49f7305c4217692c470df14438ef0e4eb4640c /the-ideal-stocking-stuffer/main.scm | |
parent | 116aa074b190599e38a43bd6a8602a05cebdfb5d (diff) |
AoC 2015.4 p1+2
Diffstat (limited to 'the-ideal-stocking-stuffer/main.scm')
-rw-r--r-- | the-ideal-stocking-stuffer/main.scm | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/the-ideal-stocking-stuffer/main.scm b/the-ideal-stocking-stuffer/main.scm new file mode 100644 index 0000000..caa0fcb --- /dev/null +++ b/the-ideal-stocking-stuffer/main.scm @@ -0,0 +1,16 @@ +;; -*- compile-command: "guix shell guile guile-hashing -- guile -L . -e main -s main.scm abcdef 000"; -*- +(use-modules (tiss) + ((ice-9 rdelim)) + (ice-9 binary-ports)) + + +(define (stdin-to-str) + (let loop ((result "")) + (let ((line (read-line))) + (if (eof-object? line) + result + (loop (string-append result line "\n")))))) + +(define (main args) + (display (tiss (cadr args) (caddr args) 0)) + (newline)) |