메소드 |
설명 |
|
concat ( ) : ImmArray |
Concat to the end of this array |
|
count ( ) |
Countable |
|
current ( ) |
Iterator |
|
filter ( callable $cb ) : ImmArray |
Filter out elements |
|
fromArray ( array $arr ) : ImmArray |
Build from an array |
|
fromItems ( Traversable $arr ) : ImmArray |
Factory for building ImmArrays from any traversable |
|
join ( string $token = ',', string $secondToken = null ) : string |
Join a set of strings together. |
|
jsonSerialize ( ) |
JsonSerializable |
|
key ( ) |
|
|
map ( callable $cb ) : ImmArray |
Map elements to a new ImmArray via a callback |
|
next ( ) |
|
|
offsetExists ( $offset ) |
ArrayAccess |
|
offsetGet ( $offset ) |
|
|
offsetSet ( $offset, $value ) |
|
|
offsetUnset ( $offset ) |
|
|
reduce ( callable $cb, mixed $initial = null ) |
Reduce to a single value |
|
rewind ( ) |
|
|
slice ( integer $begin, integer $end = null ) : ImmArray |
Take a slice of the array |
|
sort ( callable $cb = null ) : ImmArray |
Return a new sorted ImmArray |
|
sortHeap ( SplHeap $heap ) : ImmArray |
Sort a new ImmArray by filtering through a heap. |
|
toArray ( ) |
|
|
valid ( ) |
|
|
walk ( callable $cb ) : ImmArray |
forEach, or "walk" the data
Exists primarily to provide a consistent interface, though it's seldom
any better than a simple php foreach. Mainly useful for chaining. |
|