def least

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

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

81# the first file by path among these and the one found so far, LICENSE files
82# passed over
83def least(fs: List<&2, K.Source>, cur: Maybe<&2, K.Source>) -> Maybe<&2, K.Source>:
84  match fs:
85    case []:
86      cur
87    case +h <> t:
88      least(t, least.pick(lic(h), cur, h))

Uses (5)

Used by (1)