diff --git a/scripts/template.rktrkt b/scripts/template.rktrkt index aedcb59..a6002b0 100644 --- a/scripts/template.rktrkt +++ b/scripts/template.rktrkt @@ -4,8 +4,6 @@ ;; solution for day @day -;; helper functions here - (define (part1 input) ;; ... (void)) @@ -14,17 +12,18 @@ ;; ... (void)) +;; parse input file +(define (parse fname) + (define input (file->... fname)) + (void input)) + (module+ test (require rackunit) ;; tests here (displayln "no tests :(")) (module+ main - (define input (file->... "inputs/@day")) - ;; part 1 + (define input (parse "inputs/@day")) (answer @day 1 (part1 input)) - - ;; part 2 (answer @day 2 (part2 input)) - (displayln "meow"))