def mapped_cons
import bend-collections@1.0.0.0/src/containers/internal/intrusive_list.bend as IntrusiveListimport Base
515def mapped_cons(~T: Type, m: Maybe<&1, T>, xs: List<&1, T>) -> List<&1, T>:
516 match m:
517 case None{}: xs
518 case Some{x}: Con{x, xs}