is there type-safe java doing 'reduce'?
i mostly need run devaluate (also called foldl / foldr, depending your contexts) java sum elements an itterable.
reduce takes collection/iterable/etc, duty twin parameters, an discretionary start value (depending doing details). duty constantly receptive an component collection cost before bid devaluate until elements have processed, advantage final value.
is there type-safe doing devaluate any common java api? seems should have one, nonetheless i haven't means it. (possibly since i don't know names use.)
Comments
Post a Comment