Option::foldRight( mixed $initialValue, callable $callable )

foldLeft() but with reversed arguments for the callable.


Parameters

$initialValue

(Required)

$callable

(Required) function(callable, initialValue): result


Return

(mixed)


Source

File: vendor/phpoption/phpoption/src/PhpOption/Option.php

    abstract public function foldRight($initialValue, $callable);