Partial
    
            
            in package
            
        
    
    
    
        
            Partial functions.
Tags
Table of Contents
Cases
Methods
- partial() : callable
- Returns a new function, which will call the callable with the provided args and can use placeholders for runtime args.
Cases
PLACEHOLDER
Methods
partial()
Returns a new function, which will call the callable with the provided args and can use placeholders for runtime args.
    public
            static        partial(callable $callable, mixed ...$args) : callable
    Examples:
- `partial($fn, 1, 2)(3, 4)` = `$fn(1, 2, 3, 4)`
- `partial($fn, 1, PLACEHOLDER, 3)(2, 4)` = `$fn(1, 2, 3, 4)`
- `partial($fn, 1, PLACEHOLDER, 3, PLACEHOLDER, 5)(2, 4, 6)` = `$fn(1, 2, 3, 4, 5, 6)`
Parameters
- $callable : callable
- $args : mixed