adventofcode/2021/13/part2.mjs
2021-12-13 11:03:28 -05:00

12 lines
258 B
JavaScript

import fs from "fs-extra";
import fp from "lodash/fp.js";
import _ from "lodash";
import * as p1 from "./part1.mjs";
export function solution({ grid, instructions }) {
instructions.forEach((i) => p1.foldGrid(grid, ...i));
return p1.printGrid(grid);
}