adventofcode/2022/10/part2.js

14 lines
232 B
JavaScript
Raw Normal View History

2022-12-10 22:54:56 +00:00
import * as R from "remeda";
import { comsys } from './part1.js';
export default (instructions) => {
const sys = comsys();
return R.pipe(
R.range(0,3),
R.map( () => sys(instructions.shift()) ),
)
};