RosettaCodeData/Task/Integer-sequence/Jq/integer-sequence-2.jq

3 lines
38 B
Plaintext

def iota: ., (. + 1 | iota);
0 | iota