aoc2020/scripts/template.rktrkt

30 lines
476 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 (part1 input))
(answer @day 2 (part2 input))
(displayln "meow"))