Map(f, a) applies f element-wise.
(self)
| 967 | assert isinstance(lam._ast, LambdaNode) |
| 968 | |
| 969 | def test_map_function_over_array(self): |
| 970 | """Map(f, a) applies f element-wise.""" |
| 971 | f = Function("f", IntSort(), IntSort()) |
| 972 | a = Array("a", IntSort(), IntSort()) |
| 973 | result = Map(f, a) |
| 974 | assert is_array(result) |
| 975 | |
| 976 | def test_as_array(self): |
| 977 | """AsArray(f) creates an array from a function.""" |