Skip to content

Instruction 4002 CONCAT_ALL

HoverCatz edited this page Mar 8, 2024 · 1 revision

This will CONCAT (aka concentrate or add) all the elements (the top/the right-most/the last added element) on the stack together.
It first pops all the elements, then adds them together as strings, and puts the resulting string back onto the stack.


Stack before: ${[\space\color{#947cdd}'Hello'\space\color{white}, \space\color{#947cdd}'\space world'\color{white}\space, \space\color{#947cdd}'\space :)'\color{white}\space]}$

CONCAT_ALL

Stack after: ${[\space\color{#947cdd}'Hello\space world\space :)'\space\color{white}]}$

Clone this wiki locally