From 305fca6002bcfb36ddfad6549e1f3e3797212fc7 Mon Sep 17 00:00:00 2001 From: haskal Date: Sat, 12 Dec 2020 01:07:11 -0500 Subject: [PATCH] update template --- scripts/template.rktrkt | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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"))