update template
This commit is contained in:
parent
a8825b52cb
commit
305fca6002
|
@ -4,8 +4,6 @@
|
||||||
|
|
||||||
;; solution for day @day
|
;; solution for day @day
|
||||||
|
|
||||||
;; helper functions here
|
|
||||||
|
|
||||||
(define (part1 input)
|
(define (part1 input)
|
||||||
;; ...
|
;; ...
|
||||||
(void))
|
(void))
|
||||||
|
@ -14,17 +12,18 @@
|
||||||
;; ...
|
;; ...
|
||||||
(void))
|
(void))
|
||||||
|
|
||||||
|
;; parse input file
|
||||||
|
(define (parse fname)
|
||||||
|
(define input (file->... fname))
|
||||||
|
(void input))
|
||||||
|
|
||||||
(module+ test
|
(module+ test
|
||||||
(require rackunit)
|
(require rackunit)
|
||||||
;; tests here
|
;; tests here
|
||||||
(displayln "no tests :("))
|
(displayln "no tests :("))
|
||||||
|
|
||||||
(module+ main
|
(module+ main
|
||||||
(define input (file->... "inputs/@day"))
|
(define input (parse "inputs/@day"))
|
||||||
;; part 1
|
|
||||||
(answer @day 1 (part1 input))
|
(answer @day 1 (part1 input))
|
||||||
|
|
||||||
;; part 2
|
|
||||||
(answer @day 2 (part2 input))
|
(answer @day 2 (part2 input))
|
||||||
|
|
||||||
(displayln "meow"))
|
(displayln "meow"))
|
||||||
|
|
Loading…
Reference in New Issue