lisa.utils.foldr#

lisa.utils.foldr(f, xs, init=None)[source]#

Right-associative version of fold().

Note

This requires reversing xs. If reversing is not supported by the iterator, it will be first converted to a tuple.