Function kaguya_rs::basic_fn::fun::foldl[][src]

pub fn foldl<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 beginning with init value and fold function

Arguments

  • init: initial point of folding, must be same type with final result
  • f: f :: (R, T) -> R, fold function
  • it: DoubleEndedIterator T