A Table is erroneously referenced in functions on iterables
Let us have a table t = ((a: 1, 2, 3), (b: 4, 5, 6))
. Then the following references to t
should not parse because IterableParameter
may actually not allow Table
. The model diagram shows VarReference
pointing to a Table
object.
t = ((a: 1, 2, 3), (b: 4, 5, 6))
a = 5 in t
b = filter((x: x > 1), t)
c = map((x: x + 1), t)
d = reduce((x, y: x + y), t)
In constrast this program is valid and it works:
t = ((a: 1, 2, 3), (b: 4, 5, 6))
a = 5 in t.a
b = filter((x: x > 1), t.b)
c = map((x: x + 1), t.a)
d = reduce((x, y: x + y), t.b)
Edited by Ivan Kondov