Omap.Cmp.case: def of bend-kit-collections@0.1.4.1 Import: import bend-kit-collections@0.1.4.1/omap.bend as Omap Lines 23-34 of bend-kit-collections@0.1.4.1/omap.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-collections@0.1.4.1/omap.bend&start_line=23&end_line=34 import Base # The recursion on cmp's result: a match cannot scrutinize cmp(k, key), and # a template cannot call a law filled below it, so each branch is a closure. def Cmp.case( -A: Type, c: Cmp, lt: Unit -> A, eq: Unit -> A, gt: Unit -> A ) -> A: match c: case LT{}: lt(Unit{}) case EQ{}: eq(Unit{}) case GT{}: gt(Unit{}) Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Cmp https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit