Class Result<I,A>
java.lang.Object
fj.parser.Result<I,A>
- All Implemented Interfaces:
Iterable<A>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbimap()First-class bifunctor map.<B,J> Result <J, B> A bifunctor map across both the remainder of the parse input and the parse value.final booleanfinal inthashCode()iterator()Returns an iterator over the parse value.mapRest()First-class function mapping across the remainder of the parse input.Maps the given function across the remainder of the parse input.mapValue()First-class function mapping across the parse value.Maps the given function across the parse value.rest()The remainder of the parse input.result()First-class construction of a result.static <A,I> Result <I, A> result(I i, A a) Construct a result with the given remainder of the parse input and parse value.final StringtoString()value()The parsed value.Methods inherited from interface Iterable
forEach, spliterator
-
Field Details
-
i
-
a
-
-
Constructor Details
-
Result
-
-
Method Details
-
hashCode
-
toString
-
equals
-
rest
-
value
-
mapRest
-
mapRest
-
mapValue
-
mapValue
-
bimap
A bifunctor map across both the remainder of the parse input and the parse value.- Parameters:
f- The function to map the remainder of the parse input with.g- The function to map the parse value with.- Returns:
- A result with a different parse input and parse value.
-
bimap
-
iterator
-
result
Construct a result with the given remainder of the parse input and parse value.- Parameters:
i- The remainder of the parse input.a- The parse value.- Returns:
- A result with the given remainder of the parse input and parse value.
-
result
-