| Package | Description |
|---|---|
| com.m3.scalaflavor4j |
| Modifier and Type | Interface and Description |
|---|---|
interface |
F2<T1,T2,R>
Function2 alias |
interface |
FoldLeftF2<T1,T2>
Function2 alias for Seq.foldLeft(Object, Function2) |
interface |
FoldRightF2<T1,T2>
Function2 alias for Seq.foldRight(Object, Function2) |
| Modifier and Type | Class and Description |
|---|---|
class |
RichFunction2<T1,T2,R>
A function of 2 parameters.
|
| Modifier and Type | Method and Description |
|---|---|
abstract <U> boolean |
Seq.corresponds(Seq<U> that,
Function2<T,U,Boolean> p)
Tests whether every element of this sequence relates to the corresponding
element of another sequence by satisfying a test predicate.
|
<U> boolean |
Nil.corresponds(Seq<U> that,
Function2<T,U,Boolean> p) |
<U> boolean |
IndexedSeq.corresponds(Seq<U> that,
Function2<T,U,Boolean> p) |
abstract <U> U |
Seq.foldLeft(U z,
Function2<U,T,U> op)
Applies a binary operator to a start value and all elements of this
sequence, going left to right.
|
<U> U |
Nil.foldLeft(U z,
Function2<U,T,U> op) |
<U> U |
IndexedSeq.foldLeft(U z,
Function2<U,T,U> operator) |
abstract <U> U |
Seq.foldRight(U z,
Function2<T,U,U> op)
Applies a binary operator to all elements of this sequence and a start
value, going right to left.
|
<U> U |
Nil.foldRight(U z,
Function2<T,U,U> op) |
<U> U |
IndexedSeq.foldRight(U z,
Function2<T,U,U> operator) |
abstract <U> U |
Seq.reduceLeft(Function2<U,T,U> op)
Applies a binary operator to all elements of this immutable sequence,
going left to right.
|
<U> U |
Nil.reduceLeft(Function2<U,T,U> op) |
<U> U |
IndexedSeq.reduceLeft(Function2<U,T,U> operator) |
abstract <U> Option<U> |
Seq.reduceLeftOption(Function2<U,T,U> op)
Optionally applies a binary operator to all elements of this immutable
sequence, going left to right.
|
<U> Option<U> |
Nil.reduceLeftOption(Function2<U,T,U> op) |
<U> Option<U> |
IndexedSeq.reduceLeftOption(Function2<U,T,U> operator) |
abstract <U> U |
Seq.reduceRight(Function2<T,U,U> op)
Applies a binary operator to all elements of this immutable sequence,
going right to left.
|
<U> U |
Nil.reduceRight(Function2<T,U,U> op) |
<U> U |
IndexedSeq.reduceRight(Function2<T,U,U> operator) |
abstract <U> Option<U> |
Seq.reduceRightOption(Function2<T,U,U> op)
Optionally applies a binary operator to all elements of this immutable
sequence, going right to left.
|
<U> Option<U> |
Nil.reduceRightOption(Function2<T,U,U> op) |
<U> Option<U> |
IndexedSeq.reduceRightOption(Function2<T,U,U> operator) |
abstract <U> Seq<U> |
Seq.scanLeft(U z,
Function2<U,T,U> op)
Produces a collection containing cummulative results of applying the
operator going left to right.
|
<U> Seq<U> |
Nil.scanLeft(U z,
Function2<U,T,U> op) |
<U> IndexedSeq<U> |
IndexedSeq.scanLeft(U z,
Function2<U,T,U> operator) |
abstract <U> Seq<U> |
Seq.scanRight(U z,
Function2<T,U,U> op)
Produces a collection containing cummulative results of applying the
operator going right to left.
|
<U> Seq<U> |
Nil.scanRight(U z,
Function2<T,U,U> op) |
<U> IndexedSeq<U> |
IndexedSeq.scanRight(U z,
Function2<T,U,U> operator) |
abstract Seq<T> |
Seq.sortWith(Function2<T,T,Boolean> lt)
Sorts this sequence according to a comparison function.
|
Seq<T> |
Nil.sortWith(Function2<T,T,Boolean> lt) |
IndexedSeq<T> |
IndexedSeq.sortWith(Function2<T,T,Boolean> lessThan) |
| Constructor and Description |
|---|
RichFunction2(Function2<T1,T2,R> f) |
Copyright © 2015. All rights reserved.