| Package | Description |
|---|---|
| com.m3.scalaflavor4j |
| Modifier and Type | Class and Description |
|---|---|
class |
Pair<T1,T2>
Tuple2 alias |
class |
Tpl2<T1,T2>
Tuple2 alias |
| Modifier and Type | Method and Description |
|---|---|
static <T1,T2> Tuple2<T1,T2> |
Tuple2.apply(T1 _1,
T2 _2) |
static <T1,T2> Tuple2<T1,T2> |
Tuple.apply(T1 _1,
T2 _2) |
static <A,B> Tuple2<A,B> |
ConcurrentOps.par(Function0<A> xp,
Function0<B> yp)
Evaluates two expressions in parallel.
|
abstract Tuple2<Seq<T>,Seq<T>> |
Seq.partition(Function1<T,Boolean> p)
Partitions this sequence in two sequences according to a predicate.
|
Tuple2<Seq<T>,Seq<T>> |
Nil.partition(Function1<T,Boolean> p) |
Tuple2<Seq<T>,Seq<T>> |
IndexedSeq.partition(Function1<T,Boolean> predicate) |
abstract Tuple2<Seq<T>,Seq<T>> |
Seq.span(Function1<T,Boolean> p)
Splits this sequence into a prefix/suffix pair according to a predicate.
|
Tuple2<Seq<T>,Seq<T>> |
Nil.span(Function1<T,Boolean> p) |
Tuple2<Seq<T>,Seq<T>> |
IndexedSeq.span(Function1<T,Boolean> predicate) |
abstract Tuple2<Seq<T>,Seq<T>> |
Seq.splitAt(int n)
Splits this sequence into two at a given position.
|
Tuple2<Seq<T>,Seq<T>> |
Nil.splitAt(int n) |
Tuple2<Seq<T>,Seq<T>> |
IndexedSeq.splitAt(int n) |
Tuple2<T2,T1> |
Tuple2.swap()
Swaps the elements of this Tuple.
|
Tuple2<Seq<K>,Seq<V>> |
SMap.unzip()
Converts this immutable map of pairs into two collections of the first
and second half of each pair.
|
| Modifier and Type | Method and Description |
|---|---|
Iterator<Tuple2<K,V>> |
SMap.iterator() |
List<Tuple2<K,V>> |
SMap.toList()
[Original] Provides as java.util.List object
|
Seq<Tuple2<K,V>> |
SMap.toSeq() |
VoidFunction1<Tuple2<T1,T2>> |
RichVoidFunction2.tupled()
Creates a tupled version of this function: instead of 2 arguments, it
accepts a single Tuple2 argument.
|
F1<Tuple2<T1,T2>,R> |
RichFunction2.tupled()
Creates a tupled version of this function: instead of 2 arguments, it
accepts a single Tuple2 argument.
|
static <T1,T2> Option<Tuple2<T1,T2>> |
Tuple2.unapply(Tuple2<T1,T2> tuple) |
static <T1,T2> Option<Tuple2<T1,T2>> |
Pair.unapply(Tuple2<T1,T2> tuple) |
abstract <U> Seq<Tuple2<T,U>> |
Seq.zip(Seq<U> that)
Returns a sequence formed from this sequence and another iterable
collection by combining corresponding elements in pairs.
|
<U> Seq<Tuple2<T,U>> |
Nil.zip(Seq<U> that) |
<U> IndexedSeq<Tuple2<T,U>> |
IndexedSeq.zip(Seq<U> that) |
abstract Seq<Tuple2<T,Integer>> |
Seq.zipWithIndex()
Zips this sequence with its indices.
|
Seq<Tuple2<T,Integer>> |
Nil.zipWithIndex() |
IndexedSeq<Tuple2<T,Integer>> |
IndexedSeq.zipWithIndex() |
| Modifier and Type | Method and Description |
|---|---|
SMap<K,V> |
SMap.plus(Tuple2<K,V>... elems)
Adds two or more elements to this collection and returns a new
collection.
|
static <T1,T2> Option<Tuple2<T1,T2>> |
Tuple2.unapply(Tuple2<T1,T2> tuple) |
static <T1,T2> Option<Tuple2<T1,T2>> |
Pair.unapply(Tuple2<T1,T2> tuple) |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> SMap<K,V> |
SMap.apply(Seq<Tuple2<K,V>> tuples) |
void |
ForComprehension2.apply(VoidFunction1<Tuple2<T1,T2>> f) |
SMap<K,V> |
SMap.filter(Function1<Tuple2<K,V>,Boolean> f)
Selects all elements of this immutable map which satisfy a predicate.
|
void |
SMap.foreach(VoidFunction1<Tuple2<K,V>> f)
Applies a function f to all elements of this immutable map.
|
<L,M> SMap<L,M> |
SMap.map(Function1<Tuple2<K,V>,Tuple2<L,M>> f)
Builds a new collection by applying a function to all elements of this
immutable map.
|
<L,M> SMap<L,M> |
SMap.map(Function1<Tuple2<K,V>,Tuple2<L,M>> f)
Builds a new collection by applying a function to all elements of this
immutable map.
|
<U,V extends CollectionLike<U>> |
ForComprehension2.yield(Function1<Tuple2<T1,T2>,U> f) |
Copyright © 2015. All rights reserved.