_1
- The first slot element type_2
- The second slot element type_3
- The third slot element type_4
- The fourth slot element type_5
- The fifth slot element type_6
- The sixth slot element typepublic class Tuple6<_1,_2,_3,_4,_5,_6> extends HList.HCons<_1,Tuple5<_2,_3,_4,_5,_6>> implements Product6<_1,_2,_3,_4,_5,_6>, MonadRec<_6,Tuple6<_1,_2,_3,_4,_5,?>>, Bifunctor<_5,_6,Tuple6<_1,_2,_3,_4,?,?>>, Traversable<_6,Tuple6<_1,_2,_3,_4,_5,?>>
HList.HCons<Head,Tail extends HList>, HList.HNil
Modifier and Type | Method and Description |
---|---|
_1 |
_1()
Retrieve the first element.
|
_2 |
_2()
Retrieve the second element.
|
_3 |
_3()
Retrieve the third element.
|
_4 |
_4()
Retrieve the fourth element.
|
_5 |
_5()
Retrieve the fifth element.
|
_6 |
_6()
Retrieve the sixth element.
|
<_5Prime,_6Prime> |
biMap(Fn1<? super _5,? extends _5Prime> lFn,
Fn1<? super _6,? extends _6Prime> rFn)
Dually map covariantly over both the left and right parameters.
|
<_5Prime> Tuple6<_1,_2,_3,_4,_5Prime,_6> |
biMapL(Fn1<? super _5,? extends _5Prime> fn)
Covariantly map over the left parameter.
|
<_6Prime> Tuple6<_1,_2,_3,_4,_5,_6Prime> |
biMapR(Fn1<? super _6,? extends _6Prime> fn)
Covariantly map over the right parameter.
|
<_0> Tuple7<_0,_1,_2,_3,_4,_5,_6> |
cons(_0 _0)
Cons an element onto the front of this HList.
|
<_6Prime> Tuple6<_1,_2,_3,_4,_5,_6Prime> |
discardL(Applicative<_6Prime,Tuple6<_1,_2,_3,_4,_5,?>> appB)
Sequence both this
Applicative and appB , discarding this Applicative's
result and returning appB . |
<_6Prime> Tuple6<_1,_2,_3,_4,_5,_6> |
discardR(Applicative<_6Prime,Tuple6<_1,_2,_3,_4,_5,?>> appB)
Sequence both this
Applicative and appB , discarding appB's result and
returning this Applicative . |
static <A> Tuple6<A,A,A,A,A,A> |
fill(A a)
Given a value of type
A , produced an instance of this tuple with each slot set to that value. |
<_6Prime> Tuple6<_1,_2,_3,_4,_5,_6Prime> |
flatMap(Fn1<? super _6,? extends Monad<_6Prime,Tuple6<_1,_2,_3,_4,_5,?>>> f)
Chain dependent computations that may continue or short-circuit based on previous results.
|
<_6Prime> Tuple6<_1,_2,_3,_4,_5,_6Prime> |
fmap(Fn1<? super _6,? extends _6Prime> fn)
Covariantly transmute this functor's parameter using the given mapping function.
|
static <A> Maybe<Tuple6<A,A,A,A,A,A>> |
fromIterable(Iterable<A> as)
|
Tuple6<_2,_1,_3,_4,_5,_6> |
invert()
Rotate the first two slots of this product.
|
<_6Prime> Lazy<Tuple6<_1,_2,_3,_4,_5,_6Prime>> |
lazyZip(Lazy<? extends Applicative<Fn1<? super _6,? extends _6Prime>,Tuple6<_1,_2,_3,_4,_5,?>>> lazyAppFn)
Given a
lazy instance of this applicative over a mapping function, "zip" the two instances together
using whatever application semantics the current applicative supports. |
<_6Prime> Tuple6<_1,_2,_3,_4,_5,_6Prime> |
pure(_6Prime _6Prime)
Lift the value
b into this applicative functor. |
static <_1,_2,_3,_4,_5> |
pureTuple(_1 _1,
_2 _2,
_3 _3,
_4 _4,
_5 _5)
|
Tuple6<_2,_3,_1,_4,_5,_6> |
rotateL3()
Rotate the first three values of this product one slot to the left.
|
Tuple6<_2,_3,_4,_1,_5,_6> |
rotateL4()
Rotate the first four values of this product one slot to the left.
|
Tuple6<_2,_3,_4,_5,_1,_6> |
rotateL5()
Rotate the first five values of this product one slot to the left.
|
Tuple6<_2,_3,_4,_5,_6,_1> |
rotateL6()
Rotate the first six values of this product one slot to the left.
|
Tuple6<_3,_1,_2,_4,_5,_6> |
rotateR3()
Rotate the first three values of this product one slot to the right.
|
Tuple6<_4,_1,_2,_3,_5,_6> |
rotateR4()
Rotate the first four values of this product one slot to the right.
|
Tuple6<_5,_1,_2,_3,_4,_6> |
rotateR5()
Rotate the first five values of this product one slot to the right.
|
Tuple6<_6,_1,_2,_3,_4,_5> |
rotateR6()
Rotate the first six values of this product one slot to the right.
|
<_6Prime> Tuple6<_1,_2,_3,_4,_5,_6Prime> |
trampolineM(Fn1<? super _6,? extends MonadRec<RecursiveResult<_6,_6Prime>,Tuple6<_1,_2,_3,_4,_5,?>>> fn)
Given some operation yielding a
RecursiveResult inside this MonadRec , internally trampoline the
operation until it yields a termination instruction. |
<_6Prime,App extends Applicative<?,App>,TravB extends Traversable<_6Prime,Tuple6<_1,_2,_3,_4,_5,?>>,AppTrav extends Applicative<TravB,App>> |
traverse(Fn1<? super _6,? extends Applicative<_6Prime,App>> fn,
Fn1<? super TravB,? extends AppTrav> pure)
Apply
fn to each element of this traversable from left to right, and collapse the results into
a single resulting applicative, potentially with the assistance of the applicative's pure function. |
<_6Prime> Tuple6<_1,_2,_3,_4,_5,_6Prime> |
zip(Applicative<Fn1<? super _6,? extends _6Prime>,Tuple6<_1,_2,_3,_4,_5,?>> appFn)
Given another instance of this applicative over a mapping function, "zip" the two instances together using
whatever application semantics the current applicative supports.
|
equals, hashCode, head, tail
cons, nil, singletonHList, toString, tuple, tuple, tuple, tuple, tuple, tuple, tuple
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getKey, getValue, into, product, setValue
comparingByKey, comparingByKey, comparingByValue, comparingByValue, equals, hashCode
public <_0> Tuple7<_0,_1,_2,_3,_4,_5,_6> cons(_0 _0)
public _1 _1()
public _2 _2()
public _3 _3()
public _4 _4()
public _5 _5()
public _6 _6()
public Tuple6<_2,_3,_4,_5,_6,_1> rotateL6()
public Tuple6<_6,_1,_2,_3,_4,_5> rotateR6()
public Tuple6<_2,_3,_4,_5,_1,_6> rotateL5()
public Tuple6<_5,_1,_2,_3,_4,_6> rotateR5()
public Tuple6<_2,_3,_4,_1,_5,_6> rotateL4()
public Tuple6<_4,_1,_2,_3,_5,_6> rotateR4()
public Tuple6<_2,_3,_1,_4,_5,_6> rotateL3()
public Tuple6<_3,_1,_2,_4,_5,_6> rotateR3()
public Tuple6<_2,_1,_3,_4,_5,_6> invert()
invert
in interface Product2<_1,_2>
invert
in interface Product3<_1,_2,_3>
invert
in interface Product4<_1,_2,_3,_4>
invert
in interface Product5<_1,_2,_3,_4,_5>
invert
in interface Product6<_1,_2,_3,_4,_5,_6>
public <_6Prime> Tuple6<_1,_2,_3,_4,_5,_6Prime> fmap(Fn1<? super _6,? extends _6Prime> fn)
fmap
in interface Applicative<_6,Tuple6<_1,_2,_3,_4,_5,?>>
fmap
in interface Functor<_6,Tuple6<_1,_2,_3,_4,_5,?>>
fmap
in interface Monad<_6,Tuple6<_1,_2,_3,_4,_5,?>>
fmap
in interface MonadRec<_6,Tuple6<_1,_2,_3,_4,_5,?>>
fmap
in interface Traversable<_6,Tuple6<_1,_2,_3,_4,_5,?>>
_6Prime
- the new parameter typefn
- the mapping functionpublic <_5Prime> Tuple6<_1,_2,_3,_4,_5Prime,_6> biMapL(Fn1<? super _5,? extends _5Prime> fn)
biMapL
in interface Bifunctor<_5,_6,Tuple6<_1,_2,_3,_4,?,?>>
biMapL
in interface BoundedBifunctor<_5,_6,Object,Object,Tuple6<_1,_2,_3,_4,?,?>>
_5Prime
- the new left parameter typefn
- the mapping functionpublic <_6Prime> Tuple6<_1,_2,_3,_4,_5,_6Prime> biMapR(Fn1<? super _6,? extends _6Prime> fn)
biMapR(f) == fmap(f)
.biMapR
in interface Bifunctor<_5,_6,Tuple6<_1,_2,_3,_4,?,?>>
biMapR
in interface BoundedBifunctor<_5,_6,Object,Object,Tuple6<_1,_2,_3,_4,?,?>>
_6Prime
- the new right parameter typefn
- the mapping functionpublic <_5Prime,_6Prime> Tuple6<_1,_2,_3,_4,_5Prime,_6Prime> biMap(Fn1<? super _5,? extends _5Prime> lFn, Fn1<? super _6,? extends _6Prime> rFn)
biMapL(lFn).biMapR(rFn)
.biMap
in interface Bifunctor<_5,_6,Tuple6<_1,_2,_3,_4,?,?>>
biMap
in interface BoundedBifunctor<_5,_6,Object,Object,Tuple6<_1,_2,_3,_4,?,?>>
_5Prime
- the new left parameter type_6Prime
- the new right parameter typelFn
- the left parameter mapping functionrFn
- the right parameter mapping functionpublic <_6Prime> Tuple6<_1,_2,_3,_4,_5,_6Prime> pure(_6Prime _6Prime)
b
into this applicative functor.pure
in interface Applicative<_6,Tuple6<_1,_2,_3,_4,_5,?>>
pure
in interface Monad<_6,Tuple6<_1,_2,_3,_4,_5,?>>
pure
in interface MonadRec<_6,Tuple6<_1,_2,_3,_4,_5,?>>
_6Prime
- the type of the returned applicative's parameter_6Prime
- the valuepublic <_6Prime> Tuple6<_1,_2,_3,_4,_5,_6Prime> zip(Applicative<Fn1<? super _6,? extends _6Prime>,Tuple6<_1,_2,_3,_4,_5,?>> appFn)
zip
in interface Applicative<_6,Tuple6<_1,_2,_3,_4,_5,?>>
zip
in interface Monad<_6,Tuple6<_1,_2,_3,_4,_5,?>>
zip
in interface MonadRec<_6,Tuple6<_1,_2,_3,_4,_5,?>>
_6Prime
- the resulting applicative parameter typeappFn
- the other applicative instancepublic <_6Prime> Lazy<Tuple6<_1,_2,_3,_4,_5,_6Prime>> lazyZip(Lazy<? extends Applicative<Fn1<? super _6,? extends _6Prime>,Tuple6<_1,_2,_3,_4,_5,?>>> lazyAppFn)
lazy
instance of this applicative over a mapping function, "zip" the two instances together
using whatever application semantics the current applicative supports. This is useful for applicatives that
support lazy evaluation and early termination.lazyZip
in interface Applicative<_6,Tuple6<_1,_2,_3,_4,_5,?>>
lazyZip
in interface Monad<_6,Tuple6<_1,_2,_3,_4,_5,?>>
lazyZip
in interface MonadRec<_6,Tuple6<_1,_2,_3,_4,_5,?>>
_6Prime
- the resulting applicative parameter typelazyAppFn
- the lazy other applicative instanceMaybe
,
Either
public <_6Prime> Tuple6<_1,_2,_3,_4,_5,_6Prime> discardL(Applicative<_6Prime,Tuple6<_1,_2,_3,_4,_5,?>> appB)
Applicative
and appB
, discarding this Applicative's
result and returning appB
. This is generally useful for sequentially performing side-effects.discardL
in interface Applicative<_6,Tuple6<_1,_2,_3,_4,_5,?>>
discardL
in interface Monad<_6,Tuple6<_1,_2,_3,_4,_5,?>>
discardL
in interface MonadRec<_6,Tuple6<_1,_2,_3,_4,_5,?>>
_6Prime
- the type of the returned Applicative's parameterappB
- the other Applicativepublic <_6Prime> Tuple6<_1,_2,_3,_4,_5,_6> discardR(Applicative<_6Prime,Tuple6<_1,_2,_3,_4,_5,?>> appB)
Applicative
and appB
, discarding appB's
result and
returning this Applicative
. This is generally useful for sequentially performing side-effects.discardR
in interface Applicative<_6,Tuple6<_1,_2,_3,_4,_5,?>>
discardR
in interface Monad<_6,Tuple6<_1,_2,_3,_4,_5,?>>
discardR
in interface MonadRec<_6,Tuple6<_1,_2,_3,_4,_5,?>>
_6Prime
- the type of appB's parameterappB
- the other Applicativepublic <_6Prime> Tuple6<_1,_2,_3,_4,_5,_6Prime> flatMap(Fn1<? super _6,? extends Monad<_6Prime,Tuple6<_1,_2,_3,_4,_5,?>>> f)
public <_6Prime> Tuple6<_1,_2,_3,_4,_5,_6Prime> trampolineM(Fn1<? super _6,? extends MonadRec<RecursiveResult<_6,_6Prime>,Tuple6<_1,_2,_3,_4,_5,?>>> fn)
RecursiveResult
inside this MonadRec
, internally trampoline the
operation until it yields a termination
instruction.
Stack-safety depends on implementations guaranteeing that the growth of the call stack is a constant factor independent of the number of invocations of the operation. For various examples of how this can be achieved in stereotypical circumstances, see the referenced types.
trampolineM
in interface MonadRec<_6,Tuple6<_1,_2,_3,_4,_5,?>>
_6Prime
- the ultimate resulting carrier typefn
- the function to internally trampolineMonadRec
for a basic implementation
,
for a {@link CoProduct2 coproduct} implementation
,
for an implementation leveraging an already stack-safe {@link Monad#flatMap(Fn1)}
,
for a {@link MonadT monad transformer} implementation
public <_6Prime,App extends Applicative<?,App>,TravB extends Traversable<_6Prime,Tuple6<_1,_2,_3,_4,_5,?>>,AppTrav extends Applicative<TravB,App>> AppTrav traverse(Fn1<? super _6,? extends Applicative<_6Prime,App>> fn, Fn1<? super TravB,? extends AppTrav> pure)
fn
to each element of this traversable from left to right, and collapse the results into
a single resulting applicative, potentially with the assistance of the applicative's pure function.traverse
in interface Traversable<_6,Tuple6<_1,_2,_3,_4,_5,?>>
_6Prime
- the resulting element typeApp
- the result applicative typeTravB
- this Traversable instance over BAppTrav
- the full inferred resulting type from the traversalfn
- the function to applypure
- the applicative pure functionpublic static <A> Tuple6<A,A,A,A,A,A> fill(A a)
A
, produced an instance of this tuple with each slot set to that value.A
- the value typea
- the value to fill the tuple withTuple2.fill(A)
public static <_1,_2,_3,_4,_5> Pure<Tuple6<_1,_2,_3,_4,_5,?>> pureTuple(_1 _1, _2 _2, _3 _3, _4 _4, _5 _5)
_1
- the head element type_2
- the second element type_3
- the third element type_4
- the fourth element type_5
- the fifth element type_1
- the head element_2
- the second element_3
- the third element_4
- the fourth element_5
- the fifth elementPure
instance