public final class Three<V,A> extends Digit<V,A>
Modifier and Type | Method and Description |
---|---|
<B> B |
foldLeft(F<B,F<A,B>> bff,
B z)
Folds this digit to the left using the given function and the given initial value.
|
<B> B |
foldRight(F<A,F<B,B>> aff,
B z)
Folds this digit to the right using the given function and the given initial value.
|
<B> B |
match(F<One<V,A>,B> one,
F<Two<V,A>,B> two,
F<Three<V,A>,B> three,
F<Four<V,A>,B> four)
Structural pattern matching on digits.
|
V3<A> |
values()
Returns the elements of this digit as a vector.
|
map, measure, reduceLeft, reduceRight, toTree
public <B> B foldRight(F<A,F<B,B>> aff, B z)
Digit
public <B> B foldLeft(F<B,F<A,B>> bff, B z)
Digit
public <B> B match(F<One<V,A>,B> one, F<Two<V,A>,B> two, F<Three<V,A>,B> three, F<Four<V,A>,B> four)
Digit
match
in class Digit<V,A>
one
- A function to apply to this digit if it's One.two
- A function to apply to this digit if it's Two.three
- A function to apply to this digit if it's Three.four
- A function to apply to this digit if it's Four.