def par.job.of

snap@1.4.0.0 · src/par.bend:19

import snap@1.4.0.0/src/par.bend as Par
import Base

19# a job accepted as `run` would accept it is sent as it is; any other is sent
20# as the empty job, which the effect answers as a program that could not be
21# started, in its own place
22def par.job.of(ok: Bool, argv: List<&2, String>) -> List<&2, String>:
23  match ok:
24    case True{}:
25      argv
26    case False{}:
27      []

Uses (3)

Used by (1)