Open nitzantomer opened 7 years ago
Question raised is why stop at this? what about $list.length
for example? Do we want to enable running predefined "methods" on built in types? For example set A to $list1.concat($list2)
?
Or should we keep the separation of data and behavior and only expose "commands style" api, like get $arr at 1
and set $arr at 1 to be 10
, or length of $list
?
Given a list or map:
There's no way to access the items in the collections.
These should work:
Access:
Mutate: