def least.pick

ezx@1.11.0.0 · src/pub/blurb.bend:72

import ezx@1.11.0.0/src/pub/blurb.bend as Blurb
import Base
import ezx@1.11.0.0/src/pkg/pkg.bend as K

72# the next file weighed: a LICENSE is passed over, and any other file is the
73# earlier of itself and the one found so far
74def least.pick(skip: Bool, cur: Maybe<&2, K.Source>, +next: K.Source) -> Maybe<&2, K.Source>:
75  match skip:
76    case True{}:
77      cur
78    case False{}:
79      least.vs(cur, next)

Uses (4)

Used by (1)