User:Olive/Brainfuck extensions

From Esolang
Jump to navigation Jump to search

Various brainfuck additions by me.

Also why does this wiki have separate pages for brainfuck equivalents. Like, just make a list/table.


Hold cells

aka the DSi home

Symbol of ^ would fit the DSi inspiration.

If hand is empty, move the current cell into the hand. e.g. If we are at the 3rd cell, |1|2|3|4|5| would become |1|2|4|5|, with |3| in hand. The pointer remains at the 3rd cell, which is now |4|.

If there's a cell in the hand, insert it at the current position. e.g. If we are at the 2nd cell holding |9|, |1|2|3|4| would become |1|2|9|3|4|, with nothing in hand. The pointer remains at the 2nd cell, which is now |9|. The hand is now empty.

Repeating it twice would result in a no-op.

No doubt this idea already exists somewhere else, as it's rather simple. Makes moving value around quite the bit easier, and you can have a value accessible no matter where you are in the tape.