Skip to contents

Make a horizontal fold

Usage

read_day13(path)

origami_instructions(dat)

origami_paper(dat)

fold_left(grid, value)

simulate_origami(paper, instructions)

fold_up(grid, value)

Source

<https://adventofcode.com/2021/day/13>

Arguments

path

file path

dat

dat

grid

grid

value

value

paper

paper