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

3 lines
102 B
Text
Raw Permalink Normal View History

2017-09-23 10:01:46 +02:00
# Emit at most one item from the stream generated by g:
def first(g): label $out | g | ., break $out;