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

3 lines
117 B
Text
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
# To avoid printing 0, test if the input is greater than 1
1024 | recurse( if . > 1 then ./2 | floor else empty end)