MCPcopy Create free account
hub / github.com/BasisResearch/lean.py / test_lambda_array

Method test_lambda_array

tests/test_z3_ported.py:963–967  ·  view source on GitHub ↗

Lambda as array comprehension.

(self)

Source from the content-addressed store, hash-verified

961 assert isinstance(sel._ast, SelectNode)
962
963 def test_lambda_array(self):
964 """Lambda as array comprehension."""
965 x = Int("x")
966 lam = Lambda(x, x * 2)
967 assert isinstance(lam._ast, LambdaNode)
968
969 def test_map_function_over_array(self):
970 """Map(f, a) applies f element-wise."""

Callers

nothing calls this directly

Calls 2

IntFunction · 0.90
LambdaFunction · 0.90

Tested by

no test coverage detected