def seen

ezmcp@0.1.0.0 · src/openapi.bend:278

import ezmcp@0.1.0.0/src/openapi.bend as Openapi
import Base

278# whether a reference is one being followed already
279def seen(refs: List<&2, String>, +ref: String) -> Bool:
280  match refs:
281    case []:
282      False{}
283    case +got <> rest:
284      or.else(String.eq(got, ref), _u => seen(rest, ref))

Uses (5)

Used by (1)