aoc2020/scripts/template.rktrkt

30 lines
490 B
Plaintext

#lang curly-fn racket
(require "scripts/aoc.rkt")
;; solution for day @day
(define (part1 input)
;; ...
(void))
(define (part2 input)
;; ...
(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 (parse "inputs/@day"))
(answer @day 1 (time (part1 input)))
(answer @day 2 (time (part2 input)))
(displayln "meow"))