Array Methods
Closed this issue · 1 comments
blazingkin commented
The language needs some helper methods in the core library to help dealing with arrays.
This would be functions like:
- sort (sorting an array)
- length (get array length)
- contains? (does the array contain an element)
- each (takes a function and performs it on each element)
- unique (removes duplicate elements)
- concatenate (concatenate one array to another)
- remove (removes a particular object)
- slice (splits an array at a particular index)
- shuffle (randomizes order of elements)
- reverse (reverses order of elements)
Likely many more, but this is a good starting point
blazingkin commented
All done. Thanks Vinh!