You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Oleksandr Zaytsev edited this page Jan 10, 2018
·
1 revision
When accessing the elements of a DataSeries, you can think of is as an Array. at: message allows you to access elements by their index, with at:put: you can modify the given element.
series at:2. "b"
series at:3put:'x'.
Besides the standard Array accessors, DataSeries provides additional operations for accessing elements by their keys
series atKey:#k2. "b"
series atKey:#k3put:'x'.
Messages for enumerating, such as do: or withIndexDo: work the same as in Array, and the collect: message creates a new DataSerie preserving the name and keys of the receiver.