Right now, to access the Nth list element in VeLa, the nth function must be used. This requires invocation of an intrinsic function, so is inefficient, and is not very friendly syntax.
For example, inefficiency here is not good for models written in VeLa as the VeLa model creator allows.
A subscripted list "object" should be an l-value and an r-value.
Given:
aList <- []
aList <- append(aList 2)
instead of the following:
nth(aList 0)
it should be possible to say:
aList[0]
It should also be possible to modify a list like this:
Right now, to access the Nth list element in VeLa, the
nth
function must be used. This requires invocation of an intrinsic function, so is inefficient, and is not very friendly syntax.For example, inefficiency here is not good for models written in VeLa as the VeLa model creator allows.
A subscripted list "object" should be an l-value and an r-value.
Given:
instead of the following:
it should be possible to say:
It should also be possible to modify a list like this: