def least
import ezx@1.11.0.0/src/pub/blurb.bend as Blurbimport 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))