RosettaCodeData/Task/Flow-control-structures/Jq/flow-control-structures.jq

3 lines
102 B
Plaintext

# Emit at most one item from the stream generated by g:
def first(g): label $out | g | ., break $out;