Evaluates code while there's 1 on top of the stack

Input stack: code

Output stack:

PumpkinDB> 1 2 3 [1 EQUAL? NOT] DOWHILE


Runtime allocation for code generation


EmptyStack error if there are less than one item on the stack

InvalidValue error if the value being checked for truth is not a boolean.

Decoding error error if the code is undecodable.


works : 1 2 3 [1 EQUAL? NOT] DOWHILE DEPTH 0 EQUAL?.
invalid_code : [1 DOWHILE] TRY UNWRAP 0x05 EQUAL?.
invalid_value : [[5] DOWHILE] TRY UNWRAP 0x03 EQUAL?.
empty_stack : [DOWHILE] TRY UNWRAP 0x04 EQUAL?.

results matching ""

    No results matching ""