September 2017 Update

This commit is contained in:
Ingy döt Net 2017-09-23 10:01:46 +02:00
parent bba7bfd280
commit ba8067c3b7
14570 changed files with 153136 additions and 63871 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)