RosettaCodeData/Task/Loops-While/Jq/loops-while-1.jq
2017-09-25 22:28:19 +02:00

2 lines
117 B
Text

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