Lists.when: def of bend-lint-api@0.2.0.0 Import: import bend-lint-api@0.2.0.0/shared/lists.bend as Lists Lines 5-10 of bend-lint-api@0.2.0.0/shared/lists.bend: https://jend.leeeet.dev/read.txt?path=bend-lint-api@0.2.0.0/shared/lists.bend&start_line=5&end_line=10 import Base def when(-A: Data, hit: Bool, v: A) -> Maybe<&2, A>: match hit: case True{}: Some{v} case False{}: None{} Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe