getInstance()
getInstance() : \JmesPath\FnDispatcher
Gets a cached instance of the default function implementations.
Dispatches to named JMESPath functions using a single function that has the following signature:
mixed $result = fn(string $function_name, array $args)
validateSeq(string $from, array $types, mixed $a, mixed $b) : mixed
Validates value A and B, ensures they both are correctly typed, and of the same type.
| string | $from | String of function:argument_position  | 
                            
| array | $types | Array of valid value types.  | 
                            
| mixed | $a | Value A  | 
                            
| mixed | $b | Value B  | 
                            
reduce(string $from, array $values, array $types, callable $reduce) : mixed
Reduces and validates an array of values to a single value using a fn.
| string | $from | String of function:argument_position  | 
                            
| array | $values | Values to reduce.  | 
                            
| array | $types | Array of valid value types.  | 
                            
| callable | $reduce | Reduce function that accepts ($carry, $item).  | 
                            
wrapExpression(string $from, callable $expr, array $types) : callable
Validates the return values of expressions as they are applied.
| string | $from | Function name : position  | 
                            
| callable | $expr | Expression function to validate.  | 
                            
| array | $types | Array of acceptable return type values.  | 
                            
Returns a wrapped function