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

3 lines
102 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
# Emit at most one item from the stream generated by g:
def first(g): label $out | g | ., break $out;