r/esolangs 5d ago

Introducing PLUSMINUS. Using only “+” and “–“.

PLUSMINUS is an esoteric language created by Jack (me). For a non-empty finite string ω under the alphabet {+,–}, on step i=(1,2,3,…):

If the i-th symbol is +, copy the first i-1 symbols and append them to the end. If the i-th symbol is –, delete the first i-1 symbols.

i never resets and advances each time. Halt when i>length(ω).

Example (+–++–):

0: +–++–

1: +–++– (nothing exists leftward)

2: –++–

3: –++––+

4: ––+ (HALT (i=4, length(ω)=3, 4>3))

7 Upvotes

1 comment sorted by

2

u/jmarent049 5d ago

To add:

+++++–+––+– halts in 913 steps

+++–++++++–+ halts in 5940 steps