Function kaguya_rs::basic_fn::fun::foldr [−][src]
pub fn foldr<T, R>(
init: R,
f: impl Fn(R, T) -> R,
it: impl DoubleEndedIterator<Item = T>
) -> R
Used for fold the double end iterator from the end with init value and fold function
Arguments
init
: initial point of folding, must be same type with final resultf
: f :: (R, T) -> R, fold functionit
:DoubleEndedIterator
T