RosettaCodeData/Task/Loops-While/Jq/loops-while-4.jq

4 lines
99 B
Plaintext

def while(cond; update):
def _while: if cond then ., (update | _while) else empty end;
_while;