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