adventofcode/2021/13/part2.mjs

15 lines
259 B
JavaScript
Raw Normal View History

2021-12-13 16:03:09 +00:00
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);
}