Uses of Class
fj.parser.Result
Packages that use Result
Package
Description
Types that set the premise for the existence of Functional Java.
Parser combinators.
-
Uses of Result in fj
Modifier and TypeMethodDescriptionEqual.resultEqual
(Equal<A> ea, Equal<I> ei) Hash.resultHash
(Hash<A> ha, Hash<I> hi) A hash instance for theResult
type.Show.resultShow
(Show<A> sa, Show<I> si) A show instance for theResult
type. -
Uses of Result in fj.parser
Modifier and TypeMethodDescription<B,
J> Result <J, B> A bifunctor map across both the remainder of the parse input and the parse value.Maps the given function across the remainder of the parse input.Maps the given function across the parse value.static <A,
I> Result <I, A> Result.result
(I i, A a) Construct a result with the given remainder of the parse input and parse value.Modifier and TypeMethodDescriptionResult.bimap()
First-class bifunctor map.Result.mapRest()
First-class function mapping across the remainder of the parse input.Result.mapValue()
First-class function mapping across the parse value.Validation
<E, Result<I, A>> Parses the input to produce a result or error.Result.result()
First-class construction of a result.Modifier and TypeMethodDescriptionstatic <I,
A, E> Parser <I, A, E> Parser.parser
(F<I, Validation<E, Result<I, A>>> f) Returns a parser that computes using the given function.