-- main.mcl -- $lambda1 = func($x) { $x + "!" } $lambda2 = func($x) { $x + "?" } $lambda = if 10 > 0 { # must be a const, otherwise this is a dynamic graph $lambda1 } else { $lambda2 } test [$lambda("hello"),] {} -- OUTPUT -- Edge: _operator -> composite: []str # 0 Edge: const: str("!") -> _operator # b Edge: const: str("+") -> _operator # op Edge: const: str("hello") -> _operator # a Vertex: _operator Vertex: composite: []str Vertex: const: str("!") Vertex: const: str("+") Vertex: const: str("hello")