コード例 #1
0
ファイル: IterableIterate.java プロジェクト: nick-orton/ponzu
 /** @see Iterate#foldLeft(double, Iterable, DoubleObjectToDoubleFunction) */
 public static <T> double foldLeft(
     double injectValue, Iterable<T> iterable, DoubleObjectToDoubleFunction<? super T> function) {
   return IteratorIterate.foldLeft(injectValue, iterable.iterator(), function);
 }
コード例 #2
0
ファイル: IterableIterate.java プロジェクト: nick-orton/ponzu
 /** @see Iterate#foldLeft(int, Iterable, IntObjectToIntFunction) */
 public static <T> int foldLeft(
     int injectValue, Iterable<T> iterable, IntObjectToIntFunction<? super T> function) {
   return IteratorIterate.foldLeft(injectValue, iterable.iterator(), function);
 }
コード例 #3
0
ファイル: IterableIterate.java プロジェクト: nick-orton/ponzu
 /** @see Iterate#foldLeft(long, Iterable, LongObjectToLongFunction) */
 public static <T> long foldLeft(
     long injectValue, Iterable<T> iterable, LongObjectToLongFunction<? super T> function) {
   return IteratorIterate.foldLeft(injectValue, iterable.iterator(), function);
 }
コード例 #4
0
ファイル: IterableIterate.java プロジェクト: nick-orton/ponzu
 /** @see Iterate#foldLeft(Object, Iterable, Function2) */
 public static <T, IV> IV foldLeft(
     IV injectValue,
     Iterable<T> iterable,
     Function2<? super IV, ? super T, ? extends IV> function) {
   return IteratorIterate.foldLeft(injectValue, iterable.iterator(), function);
 }