r/brainfuck • • Oct 12 '26

My first program/function - Tape Clearer

>[-] < [->+<] >- [ > [-] < [->+<] >- <+>] < [-<]

this function clears a number of slots in the tape equal to the vale of the slot the pointer is currently on. it also clears out the slot the pointer starts on.

5 Upvotes

1 comment sorted by

1

u/danielcristofani Oct 13 '26

Great first program. Congratulations!