StreamableInterface
        StreamableInterface.php
                :
        16
                
    
            Interface
                Methods¶
                
exists()
            ¶
    
        
        StreamableInterface.php
                :
        50
                
    
        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
                :
        26
                
    
        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
                :
        43
                
    
        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
                :
        36
                
    
        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