begin building a scheme template
This commit is contained in:
parent
8817481f23
commit
94a11e24c5
16
main.scm.tmpl
Normal file
16
main.scm.tmpl
Normal file
@ -0,0 +1,16 @@
|
||||
(import
|
||||
(chicken io)
|
||||
(chicken format)
|
||||
)
|
||||
|
||||
(call-with-input-file "inputs/input"
|
||||
(lambda (port)
|
||||
(map
|
||||
(lambda (line) (printf "~A~%" line))
|
||||
(read-lines port))))
|
||||
|
||||
(call-with-input-file "inputs/input"
|
||||
(lambda (port)
|
||||
(map
|
||||
(lambda (line) (printf "~A~%" line))
|
||||
(read-lines port))))
|
3
new.sh
3
new.sh
@ -14,5 +14,8 @@ if [ "${1}" != "" ]; then
|
||||
if [ ! -f "${padded}/main.go" ]; then
|
||||
cp -n main.go.tmpl ${padded}/main.go
|
||||
fi
|
||||
if [ ! -f "${padded}/main.scm" ]; then
|
||||
cp -n main.scm.tmpl ${padded}/main.scm
|
||||
fi
|
||||
echo "https://adventofcode.com/${__year}/day/${1}"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user