import p from require "moon" aoc = (day, problem, fun) -> with io.open "input/#{day}.txt" data = \read "*a" print "============ #{day}.#{problem} ================" out = fun data print out \close! {:aoc, :p}