Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1,2 @@
# To avoid printing 0, test if the input is greater than 1
1024 | recurse( if . > 1 then ./2 | floor else empty end)

View file

@ -0,0 +1 @@
1024 | recurse( ./2 | floor; . > 0)

View file

@ -0,0 +1,2 @@
def task: if . > 0 then ., (./2 | floor | task) else empty end;
1024|task

View file

@ -0,0 +1,3 @@
def while(cond; update):
def _while: if cond then ., (update | _while) else empty end;
_while;

View file

@ -0,0 +1 @@
1024|while(. > 0; ./2|floor)