summaryrefslogtreecommitdiff
path: root/the-ideal-stocking-stuffer/main.scm
blob: caa0fcbc2c149da94bcc146fea1c98f582c9fe6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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))