RosettaCodeData/Task/Runge-Kutta-method/Jq/runge-kutta-method-1.jq
2017-09-25 22:28:19 +02:00

7 lines
187 B
Text

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