adventofcode/_templates/day/new/part1.ejs

19 lines
400 B
Plaintext
Raw Permalink Normal View History

2022-12-08 15:15:42 +00:00
---
to: 2022/<%= day %>/part1.js
---
import * as R from "remeda";
2022-12-08 21:20:07 +00:00
import { readFile } from "../05/part1.js";
const readInput = (...args) =>
2022-12-14 14:25:59 +00:00
R.pipe(
readFile(...args),
(lines) => lines.split("\n"),
R.compact, // remove last line
);
2022-12-08 21:20:07 +00:00
export const puzzleInput = readInput(import.meta.url, "input");
export const sample = readInput(import.meta.url, "sample");
2022-12-09 16:30:43 +00:00
export default () => {};