public static function reduceRight($list, callable $iterator, $memo, $context = null)
    {
        return static::reduce(array_reverse(static::toArray($list)), $iterator, $memo, $context);
    }
public static function reduceRight($list, callable $iterator, $memo, $context = null)
    {
        return static::reduce(array_reverse(static::toArray($list)), $iterator, $memo, $context);
    }
public static function reduceRight ( $ list , callable $ iterator , $ memo , $ context = null ) { return static :: reduce ( array_reverse ( static :: toArray ( $ list ) ) , $ iterator , $ memo , $ context ) ; }
The right-associative version of reduce.

@category Collection Functions

@param traversable $list the list of items to reduce
@param callable $iterator the reduction function
@param mixed $memo The initial reduction state
@param object $context optional, if provided will become the context of $iterator

@return mixed
The right - associative version of reduce .