def seen
import ezmcp@0.1.0.0/src/openapi.bend as Openapiimport 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))