def get_opt

cli@0.2.0.0 · cli.bend:4577

import cli@0.2.0.0/cli.bend as Cli
import Base

4577def get_opt(~T: Data, ~conv: String -> T, f: Field) -> Maybe<&2, T>:
4578  match f:
4579    case Field{id, head <> tail, source}: Some{conv(head)}
4580    case _: None{}

Uses (4)

Used by (5)