Atom - Œṙ - Run Length Decode

Characters: Π,

Tags: miscellaneous , array , number , vectorize

Arity: monadic

This atom is monadic, which means it takes one argument.


Decode a list of [element, repetitions] pairs into the original list. Vectorizes at depth 2.


This is the right inverse of Œr (Run Length Encode).


This atom should work roughly the same way as or very similarly in concept to the following code snippets (some edge case exceptions may exist):