StreamableInterface
StreamableInterface.php
:
16
Methods¶
exists() ¶
StreamableInterface.php
:
42
Tests the existence of an element that satisfies the given predicate.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$predicate | Closure | - | - |
Return values
bool
filter() ¶
StreamableInterface.php
:
24
Returns all the elements of this collection that satisfy the predicate.
|
|
The order of the elements is preserved.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$predicate | Closure | - | - |
Return values
self
forAll() ¶
StreamableInterface.php
:
37
Tests whether the given predicate holds for all elements of this collection.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$predicate | Closure | - | - |
Return values
bool
map() ¶
StreamableInterface.php
:
32
Applies the given function to each element in the collection and returns a new collection with the elements returned by the function.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$function | Closure | - | - |
Return values
self