adventofcode/_templates/day/new/part1.ejs

19 lines
400 B
Plaintext

---
to: 2022/<%= day %>/part1.js
---
import * as R from "remeda";
import { readFile } from "../05/part1.js";
const readInput = (...args) =>
R.pipe(
readFile(...args),
(lines) => lines.split("\n"),
R.compact, // remove last line
);
export const puzzleInput = readInput(import.meta.url, "input");
export const sample = readInput(import.meta.url, "sample");
export default () => {};