php-scalar-objects
php-scalar-objects copied to clipboard
Array method dumping ground
I'll come back and give these some more detail, just getting them off the top of my head before I forget.
Member methods
- join
- sum
- any
- all
- max
- min
- intersect
- reduce/fold
- map
- filter
- intersperse
- union
- difference
- intersect
- slice
- splice
Static methods
- repeat/fill
- map **
- filter **
- reduce/fold **
**repeat, but these methods can be very helpful with partial application and member methods don't provide this opportunity
Writing up tests for the remaining methods.
map/filter/reduce are not necessary as static elements with the details in #13