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

3 lines
117 B
Plaintext

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