def comment.pick
import cswap-bend-cli@0.1.0.0/fmt/yscal.bend as Yscalimport Base
10def comment.pick(hit: Bool, n: Nat, rest: Maybe<&2, Nat>) -> Maybe<&2, Nat>:
11 match hit:
12 case True{}:
13 Some{n}
14 case False{}:
15 rest
import cswap-bend-cli@0.1.0.0/fmt/yscal.bend as Yscalimport Base
10def comment.pick(hit: Bool, n: Nat, rest: Maybe<&2, Nat>) -> Maybe<&2, Nat>:
11 match hit:
12 case True{}:
13 Some{n}
14 case False{}:
15 rest