Uses of Interface
com.jnape.palatable.lambda.monad.MonadRec
Packages that use MonadRec
Package
Description
-
Uses of MonadRec in com.jnape.palatable.lambda.adt
Classes in com.jnape.palatable.lambda.adt that implement MonadRecModifier and TypeClassDescriptionclassEither<L,R> The binary tagged union, implemented as a specializedCoProduct2.private static final classEither.Left<L,R> private static final classEither.Right<L,R> classMaybe<A>The optional type, representing a potentially absent value.private static final classMaybe.Just<A>private static final classclassThese<A,B> The coproduct of a coproduct () and its product (CoProduct2<A, B>), represented as aTuple2<A, B>.CoProduct3<A, B,Tuple2<A, B>>private static final classThese._A<A,B> private static final classThese._B<A,B> private static final classThese.Both<A,B> classTry<A>AMonadof the evaluation outcome of an expression that might throw.private static final classTry.Failure<A>private static final classTry.Success<A>Method parameters in com.jnape.palatable.lambda.adt with type arguments of type MonadRecModifier and TypeMethodDescriptionEither.trampolineM(Fn1<? super R, ? extends MonadRec<RecursiveResult<R, B>, Either<L, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.<B> Maybe<B> Maybe.trampolineM(Fn1<? super A, ? extends MonadRec<RecursiveResult<A, B>, Maybe<?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.These.trampolineM(Fn1<? super B, ? extends MonadRec<RecursiveResult<B, C>, These<A, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.<B> Try<B> Try.trampolineM(Fn1<? super A, ? extends MonadRec<RecursiveResult<A, B>, Try<?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction. -
Uses of MonadRec in com.jnape.palatable.lambda.adt.choice
Classes in com.jnape.palatable.lambda.adt.choice that implement MonadRecModifier and TypeClassDescriptionclassChoice2<A,B> Canonical ADT representation ofCoProduct2.private static final classChoice2._A<A,B> private static final classChoice2._B<A,B> classChoice3<A,B, C> Canonical ADT representation ofCoProduct3.private static final classChoice3._A<A,B, C> private static final classChoice3._B<A,B, C> private static final classChoice3._C<A,B, C> classChoice4<A,B, C, D> Canonical ADT representation ofCoProduct4.private static final classChoice4._A<A,B, C, D> private static final classChoice4._B<A,B, C, D> private static final classChoice4._C<A,B, C, D> private static final classChoice4._D<A,B, C, D> classChoice5<A,B, C, D, E> Canonical ADT representation ofCoProduct5.private static final classChoice5._A<A,B, C, D, E> private static final classChoice5._B<A,B, C, D, E> private static final classChoice5._C<A,B, C, D, E> private static final classChoice5._D<A,B, C, D, E> private static final classChoice5._E<A,B, C, D, E> classChoice6<A,B, C, D, E, F> Canonical ADT representation ofCoProduct6.private static final classChoice6._A<A,B, C, D, E, F> private static final classChoice6._B<A,B, C, D, E, F> private static final classChoice6._C<A,B, C, D, E, F> private static final classChoice6._D<A,B, C, D, E, F> private static final classChoice6._E<A,B, C, D, E, F> private static final classChoice6._F<A,B, C, D, E, F> classChoice7<A,B, C, D, E, F, G> Canonical ADT representation ofCoProduct7.private static final classChoice7._A<A,B, C, D, E, F, G> private static final classChoice7._B<A,B, C, D, E, F, G> private static final classChoice7._C<A,B, C, D, E, F, G> private static final classChoice7._D<A,B, C, D, E, F, G> private static final classChoice7._E<A,B, C, D, E, F, G> private static final classChoice7._F<A,B, C, D, E, F, G> private static final classChoice7._G<A,B, C, D, E, F, G> classChoice8<A,B, C, D, E, F, G, H> Canonical ADT representation ofCoProduct8.private static final classChoice8._A<A,B, C, D, E, F, G, H> private static final classChoice8._B<A,B, C, D, E, F, G, H> private static final classChoice8._C<A,B, C, D, E, F, G, H> private static final classChoice8._D<A,B, C, D, E, F, G, H> private static final classChoice8._E<A,B, C, D, E, F, G, H> private static final classChoice8._F<A,B, C, D, E, F, G, H> private static final classChoice8._G<A,B, C, D, E, F, G, H> private static final classChoice8._H<A,B, C, D, E, F, G, H> Method parameters in com.jnape.palatable.lambda.adt.choice with type arguments of type MonadRecModifier and TypeMethodDescriptionChoice2.trampolineM(Fn1<? super B, ? extends MonadRec<RecursiveResult<B, C>, Choice2<A, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Choice3.trampolineM(Fn1<? super C, ? extends MonadRec<RecursiveResult<C, D>, Choice3<A, B, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Choice4.trampolineM(Fn1<? super D, ? extends MonadRec<RecursiveResult<D, E>, Choice4<A, B, C, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Choice5.trampolineM(Fn1<? super E, ? extends MonadRec<RecursiveResult<E, F>, Choice5<A, B, C, D, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Choice6.trampolineM(Fn1<? super F, ? extends MonadRec<RecursiveResult<F, G>, Choice6<A, B, C, D, E, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Choice7.trampolineM(Fn1<? super G, ? extends MonadRec<RecursiveResult<G, H>, Choice7<A, B, C, D, E, F, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Choice8.trampolineM(Fn1<? super H, ? extends MonadRec<RecursiveResult<H, I>, Choice8<A, B, C, D, E, F, G, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction. -
Uses of MonadRec in com.jnape.palatable.lambda.adt.hlist
Classes in com.jnape.palatable.lambda.adt.hlist that implement MonadRecModifier and TypeClassDescriptionclassSingletonHList<_1>A singleton HList.classTuple2<_1,_2> A 2-element tuple product type, implemented as a specialized HList.classTuple3<_1,_2, _3> A 3-element tuple product type, implemented as a specialized HList.classTuple4<_1,_2, _3, _4> A 4-element tuple product type, implemented as a specialized HList.classTuple5<_1,_2, _3, _4, _5> A 5-element tuple product type, implemented as a specialized HList.classTuple6<_1,_2, _3, _4, _5, _6> A 6-element tuple product type, implemented as a specialized HList.classTuple7<_1,_2, _3, _4, _5, _6, _7> A 7-element tuple product type, implemented as a specialized HList.classTuple8<_1,_2, _3, _4, _5, _6, _7, _8> An 8-element tuple product type, implemented as a specialized HList.Method parameters in com.jnape.palatable.lambda.adt.hlist with type arguments of type MonadRecModifier and TypeMethodDescription<_1Prime> SingletonHList<_1Prime> SingletonHList.trampolineM(Fn1<? super _1, ? extends MonadRec<RecursiveResult<_1, _1Prime>, SingletonHList<?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Tuple2.trampolineM(Fn1<? super _2, ? extends MonadRec<RecursiveResult<_2, _2Prime>, Tuple2<_1, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Tuple3.trampolineM(Fn1<? super _3, ? extends MonadRec<RecursiveResult<_3, _3Prime>, Tuple3<_1, _2, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Tuple4.trampolineM(Fn1<? super _4, ? extends MonadRec<RecursiveResult<_4, _4Prime>, Tuple4<_1, _2, _3, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Tuple5.trampolineM(Fn1<? super _5, ? extends MonadRec<RecursiveResult<_5, _5Prime>, Tuple5<_1, _2, _3, _4, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Tuple6.trampolineM(Fn1<? super _6, ? extends MonadRec<RecursiveResult<_6, _6Prime>, Tuple6<_1, _2, _3, _4, _5, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Tuple7.trampolineM(Fn1<? super _7, ? extends MonadRec<RecursiveResult<_7, _7Prime>, Tuple7<_1, _2, _3, _4, _5, _6, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Tuple8.trampolineM(Fn1<? super _8, ? extends MonadRec<RecursiveResult<_8, _8Prime>, Tuple8<_1, _2, _3, _4, _5, _6, _7, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction. -
Uses of MonadRec in com.jnape.palatable.lambda.adt.hmap
Subinterfaces of MonadRec in com.jnape.palatable.lambda.adt.hmapModifier and TypeInterfaceDescriptioninterfaceA lens that focuses on theheterogeneous listof values pointed at by one or moretypesafe keysthat must all exist in the sameHMapto be collectively extracted.interfaceTypeSafeKey<A,B> An interface representing a parametrized key for use inHMaps.static interface -
Uses of MonadRec in com.jnape.palatable.lambda.functions
Subinterfaces of MonadRec in com.jnape.palatable.lambda.functionsModifier and TypeInterfaceDescriptioninterfaceEffect<A>A function returning "no result", and therefore only useful as a side-effect.interfaceFn0<A>interfaceFn1<A,B> A function taking a single argument.interfaceFn2<A,B, C> A function taking two arguments.interfaceFn3<A,B, C, D> A function taking three arguments.interfaceFn4<A,B, C, D, E> A function taking four arguments.interfaceFn5<A,B, C, D, E, F> A function taking five arguments.interfaceFn6<A,B, C, D, E, F, G> A function taking six arguments.interfaceFn7<A,B, C, D, E, F, G, H> A function taking seven arguments.interfaceFn8<A,B, C, D, E, F, G, H, I> A function taking eight arguments.Method parameters in com.jnape.palatable.lambda.functions with type arguments of type MonadRecModifier and TypeMethodDescriptionFn1.trampolineM(Fn1<? super B, ? extends MonadRec<RecursiveResult<B, C>, Fn1<A, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction. -
Uses of MonadRec in com.jnape.palatable.lambda.functions.builtin.fn1
Classes in com.jnape.palatable.lambda.functions.builtin.fn1 that implement MonadRecModifier and TypeClassDescriptionfinal classCatMaybes<A>final classCoalesce<L,R> final classConstantly<A,B> A function that takes two arguments and always returns the first argument.final classCycle<A>Given anIterable, return an infiniteIterablethat repeatedly cycles its elements, in order.final classDistinct<A>final classDowncast<A extends B, B>Covariantly cast a value of typeBto a value of subtypeA.final classEmpty<A>A predicate that returns true ifasis empty; false otherwise.final classFlatten<A>final classForce<A>Deprecated.final classHead<A>final classId<A>The identity function.final classInit<A>final classInits<A>final classLast<A>final classMagnetize<A>final classNot<A>Negate a predicate function.final classOccurrences<A>final classRepeat<A>Given a value, return an infiniteIterablethat repeatedly iterates that value.final classReverse<A>Given anIterable, return a reversed representation of thatIterable.final classfinal classSort<A extends Comparable<A>>final classTail<A>Returns the tail of anIterable; the is, anIterableof all the elements except for the head element.final classTails<A>final classUncons<A>final classUpcast<A extends B, B>Upcast a value of typeBto a value of typeAthatBextends. -
Uses of MonadRec in com.jnape.palatable.lambda.functions.builtin.fn2
Classes in com.jnape.palatable.lambda.functions.builtin.fn2 that implement MonadRecModifier and TypeClassDescriptionfinal class$<A,B> final classAll<A>Eagerly apply a predicate to each element in anIterable, returningtrueif every element satisfies the predicate, andfalseotherwise.final classAlter<A>final classAny<A>Eagerly apply a predicate to each element in anIterable, returningtrueif any element satisfies the predicate, andfalseotherwise.final classAutoBracket<A extends AutoCloseable, B>Given anIOyielding someAutoCloseabletypeAand a kleisli arrow from that type to a newIOof typeB, attempt to provision theA, applying the body operation if provisioning was successful and ensuring thatAutoCloseable.close()is called regardless of whether the body succeeds or fails.final classBoth<A,B, C> final classCartesianProduct<A,B> Lazily compute the cartesian product of anIterable<A>andIterable<B>, returning anIterable<Tuple2<A, B>>, the products as tuples of multiplicandAs and multiplierBs.final classCmpEq<A extends Comparable<A>>Given twoComparablevalues of typeA, returntrueif the first value is strictly equal to the second value (according toComparable.compareTo(Object); otherwise, return false.final classCons<A>Prepend an element to anIterable.final classDifference<A>final classDrop<A>Lazily skip the firstnelements from anIterableby returning anIterablethat begins iteration after thenthelement.final classDropWhile<A>Lazily limit theIterableby skipping the first contiguous group of elements that satisfy the predicate, beginning iteration at the first element for which the predicate evaluates tofalse.final classEq<A>Type-safe equality in function form; usesObject.equals(Object), not==.final classFilter<A>Lazily apply a predicate to each element in anIterable, returning anIterableof just the elements for which the predicate evaluated totrue.final classFind<A>Iterate the elements in anIterable, applying a predicate to each one, returning the first element that matches the predicate, wrapped in aMaybe.final classGroupBy<K,V> Given anIterable<V>vsand a key functionV -> Kf, foldvsinto aMap<K, List<V>>by applyingfto each element ofvs, retaining values that map to the same key in a list, in the order they were iterated in.final classGT<A extends Comparable<A>>Given twoComparablevalues of typeA, returntrueif the second value is strictly greater than the first value; otherwise, return false.final classGTE<A extends Comparable<A>>Given twoComparablevalues of typeA, returntrueif the second value is greater than or equal to the first value according toComparable.compareTo(Object); otherwise, return false.final classInGroupsOf<A>Lazily group theIterableby returning anIterableof smallerIterables of sizek.final classIntersperse<A>Lazily inject the provided separator value between each value in the suppliedIterable.final classInto<A,B, C> final classInto1<A,B> Given anand aFn1<A, B>, pop the head and apply it to the function, returning the result.SingletonHList<A>final classInto3<A,B, C, D> final classInto4<A,B, C, D, E> final classInto5<A,B, C, D, E, F> final classInto6<A,B, C, D, E, F, G> final classInto7<A,B, C, D, E, F, G, H> final classInto8<A,B, C, D, E, F, G, H, I> final classIterate<A>final classLazyRec<A,B> final classLT<A extends Comparable<A>>Given twoComparablevalues of typeA, returntrueif the second value is strictly less than the first value; otherwise, return false.final classLTE<A extends Comparable<A>>Given twoComparablevalues of typeA, returntrueif the second value is less than or equal to the first value according toComparable.compareTo(Object)otherwise, return false.final classMagnetizeBy<A>final classMap<A,B> Lazily apply a function to each element in anIterable, producing anIterableof the mapped results.final classPartition<A,B, C> Given anIterable<A>asand a disjoint mapping functiona -> CoProduct2<A, B>, return aTuple2over the lazily unwrapped leftAand rightBvalues in the first and second slots, respectively.final classfinal classPeek2<A, B, FAB extends BoundedBifunctor<A, B, ? super A, ? super B, ?>>Deprecated.in favor of producing anIOfrom the givenBoundedBifunctorand explicitly running itfinal classPrependAll<A>Lazily prepend each value with of theIterablewith the supplied separator value.final classReduceLeft<A>final classReduceRight<A>final classReplicate<A>Produce anIterableof a valuentimes.final classSequence<A, App extends Applicative<?,App>, Trav extends Traversable<?, Trav>, TravA extends Traversable<A, Trav>, AppTrav extends Applicative<TravA, App>> Given aTraversableofApplicatives and a pureApplicativeconstructor, traverse the elements from left to right, zipping theApplicatives together and collecting the results.final classSlide<A>final classSnoc<A>final classSortBy<A, B extends Comparable<B>>Given anIterableand some mapping function from theIterableelement type to someComparabletype, produce a sortedListof the original elements based on sorting applied to the result of the mapping function.final classSortWith<A>Given anIterableand aComparatorover theIterableelement type, produce a sortedListof the original elements based on sorting applied by theComparator.final classSpan<A>final classTake<A>Lazily limit theIterabletonelements by returning anIterablethat stops iteration after thenthelement, or the last element of theIterable, whichever comes first.final classTakeWhile<A>Lazily limit theIterableto the first group of contiguous elements that satisfy the predicate by iterating up to, but not including, the first element for which the predicate evaluates tofalse.final classToArray<A>Write all the elements of anIterabledirectly into an array of the specified type.final classToCollection<A, C extends Collection<A>>Given anFn0of someCollectionC, create an instance ofCand add all of the elements in the providedIterableto the instance.final classfinal classTupler2<A,B> Creates aTuple2from two values.final classUnfoldr<A,B> final classUntil<A>Given apredicate functionfor a value of some typeAand anIOthat yields a value of typeA, produce anIOthat repeatedly executes the originalIOuntil the predicate returns true when applied to the yielded value.final classZip<A,B> Zip together twoIterables into a singleIterableofTuple2<A, B>. -
Uses of MonadRec in com.jnape.palatable.lambda.functions.builtin.fn3
Classes in com.jnape.palatable.lambda.functions.builtin.fn3 that implement MonadRecModifier and TypeClassDescriptionfinal classBetween<A extends Comparable<A>>Given two bounds and a value, return whether or not the value is greater than or equal to the lower bound and less than or equal to the upper bound.final classBracket<A,B> Given anIOthat yields some typeA, a cleanup operation to run if a value of that type could be provisioned, and a kleisli arrow from that type to a newIOof typeB, produce anthat, when run, will provision theIO<B>A,flatMapit toB, and clean up the original value if it was produced in the first place.final classClamp<A extends Comparable<A>>Given two bounds and a value, "clamp" the value between the bounds via the following algorithm: - if the value is strictly less than the lower bound, return the lower bound - if the value is strictly greater than the upper bound, return the upper bound - otherwise, return the valuefinal classCmpEqBy<A, B extends Comparable<B>>Given a mapping function from some typeAto someComparabletypeBand two values of typeA, returntrueif the first value is strictly equal to the second value (according toComparable.compareTo(Object)in terms of their mappedBresults; otherwise, return false.final classCmpEqWith<A>Given aComparatorfrom some typeAand two values of typeA, returntrueif the first value is strictly equal to the second value (according toComparator.compare(Object, Object)otherwise, return false.final classCompare<A>Given aComparatorfrom some typeAand two values of typeA, return aComparisonRelationof the first value with reference to the second value (according toComparator.compare(Object, Object).final classFoldLeft<A,B> Given anIterableofAs, a starting valueB, and a, iteratively accumulate over theFn2<B, A, B>Iterable, ultimately returning a finalBvalue.final classFoldRight<A,B> final classGTBy<A, B extends Comparable<B>>Given a mapping function from some typeAto someComparabletypeBand two values of typeA, returntrueif the second value is strictly greater than the first value in terms of their mappedBresults; otherwise, return false.final classGTEBy<A, B extends Comparable<B>>Given a mapping function from some typeAto someComparabletypeBand two values of typeA, returntrueif the second value is greater than or equal to the first value in terms of their mappedBresults according toComparable.compareTo(Object); otherwise, return false.final classGTEWith<A>Given aComparatorfrom some typeAand two values of typeA, returntrueif the second value is greater than or equal to the first value in terms of their mappedBresults according toComparator.compare(Object, Object); otherwise, return false.final classGTWith<A>Given aComparatorfrom some typeAand two values of typeA, returntrueif the second value is strictly greater than the first value in terms of their mappedBresults; otherwise, return false.final classLiftA2<A, B, C, App extends Applicative<?,App>, AppC extends Applicative<C, App>> Lift into and apply anFn2to twoApplicativevalues, returning the result inside the sameApplicativecontext.final classLTBy<A, B extends Comparable<B>>Given a mapping function from some typeAto someComparabletypeBand two values of typeA, returntrueif the second value is strictly less than the first value in terms of their mappedBresults; otherwise, return false.final classLTEBy<A, B extends Comparable<B>>Given a mapping function from some typeAto someComparabletypeBand two values of typeA, returntrueif the second value is less than or equal to the first value in terms of their mappedBresults according toComparable.compareTo(Object); otherwise, return false.final classLTEWith<A>Given aComparatorfrom some typeAand two values of typeA, returntrueif the second value is less than or equal to the first value in terms of their mappedBresults according toComparator.compare(Object, Object); otherwise, return false.final classLTWith<A>Given a comparator for some typeAand two values of typeA, returntrueif the second value is strictly less than than the first value in terms of their mappedBresults; otherwise, return false.final classScanLeft<A,B> Given anIterableofAs, a starting valueB, and a, iteratively accumulate over theFn2<B, A, B>Iterable, collecting each function application result, finally returning anIterableof all the results.final classTimes<A>Given some number of timesnto invoke a functionA -> A, and given an inputA, iteratively apply the function to the input, and then to the result of the invocation, a total ofntimes, returning the result.final classZipWith<A,B, C> Zip together twoIterables by applying a zipping function to the successive elements of eachIterableuntil one of them runs out of elements. -
Uses of MonadRec in com.jnape.palatable.lambda.functions.builtin.fn4
Classes in com.jnape.palatable.lambda.functions.builtin.fn4 that implement MonadRecModifier and TypeClassDescriptionfinal classIfThenElse<A,B> final classLiftA3<A, B, C, D, App extends Applicative<?,App>, AppD extends Applicative<D, App>> Lift into and apply anFn3to threeApplicativevalues, returning the result inside the sameApplicativecontext.final classRateLimit<A> -
Uses of MonadRec in com.jnape.palatable.lambda.functions.builtin.fn5
Classes in com.jnape.palatable.lambda.functions.builtin.fn5 that implement MonadRecModifier and TypeClassDescriptionfinal classLiftA4<A, B, C, D, E, App extends Applicative<?,App>, AppE extends Applicative<E, App>> Lift into and apply anFn4to fourApplicativevalues, returning the result inside the sameApplicativecontext. -
Uses of MonadRec in com.jnape.palatable.lambda.functions.builtin.fn6
Classes in com.jnape.palatable.lambda.functions.builtin.fn6 that implement MonadRecModifier and TypeClassDescriptionfinal classLiftA5<A, B, C, D, E, F, App extends Applicative<?,App>, AppF extends Applicative<F, App>> Lift into and apply anFn5to fiveApplicativevalues, returning the result inside the sameApplicativecontext. -
Uses of MonadRec in com.jnape.palatable.lambda.functions.builtin.fn7
Classes in com.jnape.palatable.lambda.functions.builtin.fn7 that implement MonadRecModifier and TypeClassDescriptionfinal classLiftA6<A, B, C, D, E, F, G, App extends Applicative<?,App>, AppG extends Applicative<G, App>> Lift into and apply anFn6to sixApplicativevalues, returning the result inside the sameApplicativecontext. -
Uses of MonadRec in com.jnape.palatable.lambda.functions.builtin.fn8
Classes in com.jnape.palatable.lambda.functions.builtin.fn8 that implement MonadRecModifier and TypeClassDescriptionfinal classLiftA7<A, B, C, D, E, F, G, H, App extends Applicative<?,App>, AppH extends Applicative<H, App>> Lift into and apply anFn7to sevenApplicativevalues, returning the result inside the sameApplicativecontext. -
Uses of MonadRec in com.jnape.palatable.lambda.functions.recursion
Classes in com.jnape.palatable.lambda.functions.recursion that implement MonadRecModifier and TypeClassDescriptionclassRecursiveResult<A,B> SpecializedCoProduct2representing the possible results of a primitive recursive function.(package private) static final class(package private) static final classfinal classTrampoline<A,B> Given an(analogous to "recurse" and "return" tail position instructions, respectively), produce aFn1<A,CoProduct2<A, B, ?>>that unrolls the original function by iteratively passing each result that matches the input (Fn1<A, B>A) back to the original function, and then terminating on and returning the first output (B).Method parameters in com.jnape.palatable.lambda.functions.recursion with type arguments of type MonadRecModifier and TypeMethodDescription<C> RecursiveResult<A, C> RecursiveResult.trampolineM(Fn1<? super B, ? extends MonadRec<RecursiveResult<B, C>, RecursiveResult<A, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction. -
Uses of MonadRec in com.jnape.palatable.lambda.functions.specialized
Subinterfaces of MonadRec in com.jnape.palatable.lambda.functions.specializedModifier and TypeInterfaceDescriptioninterfaceBiMonoidFactory<A,B, C> interfaceBiPredicate<A,B> interfaceBiSemigroupFactory<A,B, C> interfaceinterfaceMonoidFactory<A,B> interfacePredicate<A>A specializedFn1that returns aBoolean.interfaceSemigroupFactory<A,B> Methods in com.jnape.palatable.lambda.functions.specialized with type parameters of type MonadRecMethods in com.jnape.palatable.lambda.functions.specialized with parameters of type MonadRec -
Uses of MonadRec in com.jnape.palatable.lambda.functor.builtin
Classes in com.jnape.palatable.lambda.functor.builtin that implement MonadRecModifier and TypeClassDescriptionfinal classConst<A,B> A (surprisingly useful) functor over some phantom typeB, retaining a value of typeAthat can be retrieved later.final classIdentity<A>A functor over some value of typeAthat can be mapped over and retrieved later.classLazy<A>AMonadrepresenting a lazily-computed value.private static final classLazy.Compose<A>private static final classLazy.Later<A>final classMarket<A,B, S, T> A profunctor used to extract the isomorphic functions aPrismis composed of.final classState<S,A> The stateMonad, useful for iteratively building up state and state-contextualized result.final classTagged<S,B> LikeConst, but the phantom parameter is in the contravariant position, and the value is in covariant position.final classWriter<W,A> The lazy writer monad, a monad capturing some accumulation (eventually to be folded in terms of a given monoid) and a value.Method parameters in com.jnape.palatable.lambda.functor.builtin with type arguments of type MonadRecModifier and TypeMethodDescriptionConst.trampolineM(Fn1<? super B, ? extends MonadRec<RecursiveResult<B, C>, Const<A, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.<B> Identity<B> Identity.trampolineM(Fn1<? super A, ? extends MonadRec<RecursiveResult<A, B>, Identity<?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.<B> Lazy<B> Lazy.trampolineM(Fn1<? super A, ? extends MonadRec<RecursiveResult<A, B>, Lazy<?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Market.trampolineM(Fn1<? super T, ? extends MonadRec<RecursiveResult<T, U>, Market<A, B, S, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.State.trampolineM(Fn1<? super A, ? extends MonadRec<RecursiveResult<A, B>, State<S, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Tagged.trampolineM(Fn1<? super B, ? extends MonadRec<RecursiveResult<B, C>, Tagged<S, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Writer.trampolineM(Fn1<? super A, ? extends MonadRec<RecursiveResult<A, B>, Writer<W, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction. -
Uses of MonadRec in com.jnape.palatable.lambda.io
Classes in com.jnape.palatable.lambda.io that implement MonadRecModifier and TypeClassDescriptionclassIO<A>AMonadrepresenting some side-effecting computation to be performed.private static final classIO.Compose<A>Method parameters in com.jnape.palatable.lambda.io with type arguments of type MonadRecModifier and TypeMethodDescription<B> IO<B> IO.trampolineM(Fn1<? super A, ? extends MonadRec<RecursiveResult<A, B>, IO<?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction. -
Uses of MonadRec in com.jnape.palatable.lambda.monad
Classes in com.jnape.palatable.lambda.monad with type parameters of type MonadRecModifier and TypeInterfaceDescriptioninterfaceinterfaceA class ofmonadsthat offer a stack-safe interface for performing arbitrarily manyflatmap-likeoperations viaMonadRec.trampolineM(Fn1).final classA stack-safemonad transformerthat can safely interpret deeply nested left- or right-associated binds for anyMonadRec.private static classSafeT.Body<M extends MonadRec<?,M>, A> private static final classSafeT.Body.Done<M extends MonadRec<?,M>, A> private static final classSafeT.Body.More<M extends MonadRec<?,M>, A> private static final classSafeT.Body.Suspended<M extends MonadRec<?,M>, A, B> private static interfaceSafeT.Body.Suspended.Φ<M extends MonadRec<?,M>, B, R> Classes in com.jnape.palatable.lambda.monad that implement MonadRecModifier and TypeClassDescriptionfinal classA stack-safemonad transformerthat can safely interpret deeply nested left- or right-associated binds for anyMonadRec.Classes in com.jnape.palatable.lambda.monad that implement interfaces with type arguments of type MonadRecFields in com.jnape.palatable.lambda.monad declared as MonadRecMethods in com.jnape.palatable.lambda.monad with type parameters of type MonadRecModifier and TypeMethodDescriptionprivate static <M extends MonadRec<?,M>, A>
SafeT.Body<M, A> SafeT.Body.done(A a) private static <M extends MonadRec<?,M>, A>
SafeT.Body<M, A> SafeT.Body.more(MonadRec<SafeT.Body<M, A>, M> mb) SafeT.runSafeT()Recover the full structure of the embeddedMonadin a stack-safe way.private static <M extends MonadRec<?,M>, A, B>
SafeT.Body<M, B> SafeT.Body.suspend(SafeT.Body<M, A> freeA, Fn1<A, SafeT.Body<M, B>> fn) Methods in com.jnape.palatable.lambda.monad that return MonadRecModifier and TypeMethodDescriptionMonadRec.discardL(Applicative<B, M> appB) Sequence both thisApplicativeandappB, discarding thisApplicative'sresult and returningappB.MonadRec.discardR(Applicative<B, M> appB) Sequence both thisApplicativeandappB, discardingappB'sresult and returning thisApplicative.Chain dependent computations that may continue or short-circuit based on previous results.Covariantly transmute this functor's parameter using the given mapping function.MonadRec.pure(B b) Lift the valuebinto this applicative functor.MonadRec.trampolineM(Fn1<? super A, ? extends MonadRec<RecursiveResult<A, B>, M>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.MonadRec.zip(Applicative<Fn1<? super A, ? extends B>, M> appFn) Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Methods in com.jnape.palatable.lambda.monad that return types with arguments of type MonadRecModifier and TypeMethodDescriptionprivate <Z> Fn1<SafeT.Body.Suspended<M, ?, Z>, RecursiveResult<SafeT.Body<M, B>, Either<MonadRec<SafeT.Body<M, B>, M>, B>>> SafeT.Body.Suspended.associateRight(Fn1<Z, SafeT.Body<M, B>> f) Given alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.SafeT.Body.Done.resume()SafeT.Body.More.resume()SafeT.Body.resume()SafeT.Body.Suspended.resume()Methods in com.jnape.palatable.lambda.monad with parameters of type MonadRecModifier and TypeMethodDescriptionprivate static <M extends MonadRec<?,M>, A>
SafeT.Body<M, A> SafeT.Body.more(MonadRec<SafeT.Body<M, A>, M> mb) Method parameters in com.jnape.palatable.lambda.monad with type arguments of type MonadRecModifier and TypeMethodDescription<R> RSafeT.Body.Done.match(Fn1<? super Either<MonadRec<SafeT.Body<M, A>, M>, A>, ? extends R> aFn, Fn1<? super SafeT.Body.Suspended<M, ?, A>, ? extends R> bFn) <R> RSafeT.Body.More.match(Fn1<? super Either<MonadRec<SafeT.Body<M, A>, M>, A>, ? extends R> aFn, Fn1<? super SafeT.Body.Suspended<M, ?, A>, ? extends R> bFn) <R> RSafeT.Body.Suspended.match(Fn1<? super Either<MonadRec<SafeT.Body<M, B>, M>, B>, ? extends R> aFn, Fn1<? super SafeT.Body.Suspended<M, ?, B>, ? extends R> bFn) MonadRec.trampolineM(Fn1<? super A, ? extends MonadRec<RecursiveResult<A, B>, M>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.SafeT.trampolineM(Fn1<? super A, ? extends MonadRec<RecursiveResult<A, B>, SafeT<M, ?>>> bounce) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Constructors in com.jnape.palatable.lambda.monad with parameters of type MonadRec -
Uses of MonadRec in com.jnape.palatable.lambda.monad.transformer
Classes in com.jnape.palatable.lambda.monad.transformer with type parameters of type MonadRecModifier and TypeInterfaceDescriptioninterfaceSubinterfaces of MonadRec in com.jnape.palatable.lambda.monad.transformerModifier and TypeInterfaceDescriptioninterfaceMethods in com.jnape.palatable.lambda.monad.transformer with type parameters of type MonadRecModifier and TypeMethodDescriptionMethods in com.jnape.palatable.lambda.monad.transformer with parameters of type MonadRec -
Uses of MonadRec in com.jnape.palatable.lambda.monad.transformer.builtin
Classes in com.jnape.palatable.lambda.monad.transformer.builtin with type parameters of type MonadRecModifier and TypeClassDescriptionfinal classAmonad transformerforEither.final classAmonad transformerforIdentity.classAmonad transformerover a co-inductive, singly-linked spine of values embedded in effects.final classAmonad transformerforLazy.final classAmonad transformerforMaybe.final classfinal classTheStatemonad transformer.final classAmonad transformerforWriter.Classes in com.jnape.palatable.lambda.monad.transformer.builtin that implement MonadRecModifier and TypeClassDescriptionfinal classAmonad transformerforEither.final classAmonad transformerforIdentity.classAmonad transformerover a co-inductive, singly-linked spine of values embedded in effects.final classAmonad transformerforLazy.final classAmonad transformerforMaybe.final classfinal classTheStatemonad transformer.final classAmonad transformerforWriter.Fields in com.jnape.palatable.lambda.monad.transformer.builtin declared as MonadRecFields in com.jnape.palatable.lambda.monad.transformer.builtin with type parameters of type MonadRecModifier and TypeFieldDescriptionReaderT.fprivate final ImmutableQueue<Choice2<Fn0<MonadRec<Maybe<Tuple2<A, IterateT<M, A>>>, M>>, MonadRec<A, M>>> IterateT.spineprivate final ImmutableQueue<Choice2<Fn0<MonadRec<Maybe<Tuple2<A, IterateT<M, A>>>, M>>, MonadRec<A, M>>> IterateT.spineStateT.stateFnWriterT.writerFnMethods in com.jnape.palatable.lambda.monad.transformer.builtin with type parameters of type MonadRecModifier and TypeMethodDescriptionGiven aPureask will give you access to the input within the monadic embeddingStatic factory method for creating an emptyIterateT.WriterT.evalWriterT(Monoid<W> monoid) Given aMonoidfor the accumulation, run the computation represented by thisWriterTinside themonadic effect, ignoring the resulting accumulation, yielding the value in isolation.WriterT.execWriterT(Monoid<W> monoid) Given aMonoidfor the accumulation, run the computation represented by thisWriterTinside themonadic effect, ignoring the value, yielding the accumulation in isolation.Monolithically fold the spine of thisIterateTbytrampoliningthe underlying effects (for iterative folding, usetrampolineMdirectly).IterateT.foldCut(Fn2<? super B, ? super A, ? extends MonadRec<RecursiveResult<B, B>, M>> fn, MonadRec<B, M> acc) Monolithically fold the spine of thisIterateT(with the possibility of early termination) bytrampoliningthe underlying effects (for iterative folding, usetrampolineMdirectly).Given a function that produces a value inside amonadic effectfrom a state, produce aStateTthat simply passes its state to the function and applies it.ReaderT.mapReaderT(Fn1<? super MA, ? extends MonadRec<B, N>> fn) ReaderT.mapReaderT(Fn1<? super MA, ? extends MonadRec<B, N>> fn) Map both the result and the final state to a new result and final state inside theMonad.Static factory method for creating anIterateTfrom a spine represented by one or more elements.EitherT.pureEitherT(Pure<M> pureM) IdentityT.pureIdentityT(Pure<M> pureM) IterateT.pureIterateT(Pure<M> pureM) MaybeT.pureMaybeT(Pure<M> pureM) ReaderT.pureReaderT(Pure<M> pureM) StateT.pureStateT(Pure<M> pureM) WriterT.pureWriterT(Pure<M> pureM) Lift amonadic stateintoStateT.EitherT.runEitherT()Recover the full structure of the embeddedMonad.IdentityT.runIdentityT()Recover the full structure of the embeddedMonad.IterateT.runIterateT()Recover the full structure of the embeddedMonad.LazyT.runLazyT()Recover the full structure of the embeddedMonad.MaybeT.runMaybeT()Recover the full structure of the embeddedMonad.ReaderT.runReaderT(R r) Run the computation represented by thisReaderT.IterateT.runStep()WriterT.runWriterT(Monoid<W> monoid) Given aMonoidfor the accumulation, run the computation represented by thisWriterTinside themonadic effect, accumulate the written output in terms of theMonoid, and produce the accumulation and the result inside theMonad.Static factory method for creating anIterateTfrom a single element.Lift a state-sensitivemonadically embeddedcomputation intoStateT.Lift amonadic valueintoStateT.<C extends Collection<A>, MAS extends MonadRec<C,M>>
MASIterateT.toCollection(Fn0<C> cFn0) Force the underlying spine of thisIterateTinto aCollectionof typeCinside the context of the monadic effect, using the providedcFn0to construct the initial instance.Methods in com.jnape.palatable.lambda.monad.transformer.builtin with parameters of type MonadRecModifier and TypeMethodDescriptionAdd an element inside an effect to the front of thisIterateT.Monolithically fold the spine of thisIterateTbytrampoliningthe underlying effects (for iterative folding, usetrampolineMdirectly).IterateT.foldCut(Fn2<? super B, ? super A, ? extends MonadRec<RecursiveResult<B, B>, M>> fn, MonadRec<B, M> acc) Monolithically fold the spine of thisIterateT(with the possibility of early termination) bytrampoliningthe underlying effects (for iterative folding, usetrampolineMdirectly).Static factory method for creating anIterateTfrom a spine represented by one or more elements.Lift amonadic stateintoStateT.Static factory method for creating anIterateTfrom a single element.Add an element inside an effect to the back of thisIterateT.Lift amonadic valueintoStateT.Method parameters in com.jnape.palatable.lambda.monad.transformer.builtin with type arguments of type MonadRecModifier and TypeMethodDescriptionMonolithically fold the spine of thisIterateTbytrampoliningthe underlying effects (for iterative folding, usetrampolineMdirectly).IterateT.foldCut(Fn2<? super B, ? super A, ? extends MonadRec<RecursiveResult<B, B>, M>> fn, MonadRec<B, M> acc) Monolithically fold the spine of thisIterateT(with the possibility of early termination) bytrampoliningthe underlying effects (for iterative folding, usetrampolineMdirectly).Given a function that produces a value inside amonadic effectfrom a state, produce aStateTthat simply passes its state to the function and applies it.ReaderT.mapReaderT(Fn1<? super MA, ? extends MonadRec<B, N>> fn) Map both the result and the final state to a new result and final state inside theMonad.Map both the result and the final state to a new result and final state inside theMonad.Lift a state-sensitivemonadically embeddedcomputation intoStateT.EitherT.trampolineM(Fn1<? super R, ? extends MonadRec<RecursiveResult<R, R2>, EitherT<M, L, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.IdentityT.trampolineM(Fn1<? super A, ? extends MonadRec<RecursiveResult<A, B>, IdentityT<M, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.IterateT.trampolineM(Fn1<? super A, ? extends MonadRec<RecursiveResult<A, B>, IterateT<M, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.LazyT.trampolineM(Fn1<? super A, ? extends MonadRec<RecursiveResult<A, B>, LazyT<M, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.MaybeT.trampolineM(Fn1<? super A, ? extends MonadRec<RecursiveResult<A, B>, MaybeT<M, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.ReaderT.trampolineM(Fn1<? super A, ? extends MonadRec<RecursiveResult<A, B>, ReaderT<R, M, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.StateT.trampolineM(Fn1<? super A, ? extends MonadRec<RecursiveResult<A, B>, StateT<S, M, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.WriterT.trampolineM(Fn1<? super A, ? extends MonadRec<RecursiveResult<A, B>, WriterT<W, M, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Map the final state to a new final state inside the samemonadic effectusing the provided function.Constructors in com.jnape.palatable.lambda.monad.transformer.builtin with parameters of type MonadRecModifierConstructorDescriptionprivateprivateprivateprivateConstructor parameters in com.jnape.palatable.lambda.monad.transformer.builtin with type arguments of type MonadRecModifierConstructorDescriptionprivateIterateT(Pure<M> pureM, ImmutableQueue<Choice2<Fn0<MonadRec<Maybe<Tuple2<A, IterateT<M, A>>>, M>>, MonadRec<A, M>>> spine) privateIterateT(Pure<M> pureM, ImmutableQueue<Choice2<Fn0<MonadRec<Maybe<Tuple2<A, IterateT<M, A>>>, M>>, MonadRec<A, M>>> spine) privateprivateprivate -
Uses of MonadRec in com.jnape.palatable.lambda.monoid
Subinterfaces of MonadRec in com.jnape.palatable.lambda.monoid -
Uses of MonadRec in com.jnape.palatable.lambda.monoid.builtin
Classes in com.jnape.palatable.lambda.monoid.builtin with type parameters of type MonadRecModifier and TypeClassDescriptionfinal classThe monoid formed under monadic endomorphism.final classThe monoid formed under monadic endomorphism.Classes in com.jnape.palatable.lambda.monoid.builtin that implement MonadRecModifier and TypeClassDescriptionfinal classAddAll<A, C extends Collection<A>>TheMonoidinstance formed under mutative concatenation for an arbitraryCollection.final classAMonoidinstance formed byBoolean.final classCollapse<_1,_2> final classCompose<A>final classConcat<A>final classEndo<A>final classThe monoid formed under monadic endomorphism.final classFirst<A>final classAMonoidinstance formed byStringthat concats two strings together.final classLast<A>final classLeftAll<L,R> final classLeftAny<L,R> final classMerge<L,R> AMonoidinstance formed byEither.merge(Fn2, Fn2, Either...), a semigroup overL, and a monoid overR.final classAMonoidinstance formed by mergingHMapsusing the chosenTypeSafeKey->Semigroupmappings, defaulting toLastin case noSemigrouphas been chosen for a givenTypeSafeKey.final classMergeMaps<K,V> final classAMonoidinstance formed byBoolean.final classPresent<A>final classfinal classRightAll<L,R> final classRightAny<L,R> final classRunAll<A>final classfinal classUnion<A>final classLogical exclusive-or.Methods in com.jnape.palatable.lambda.monoid.builtin with type parameters of type MonadRec -
Uses of MonadRec in com.jnape.palatable.lambda.optics
Subinterfaces of MonadRec in com.jnape.palatable.lambda.opticsModifier and TypeInterfaceDescriptioninterfaceIso<S,T, A, B> static interfaceIso.Simple<S,A> A convenience type with a simplified type signature for common isos with both unified "larger" values and unified "smaller" values.interfaceLens<S,T, A, B> An approximation of van Laarhoven lenses.static interfaceLens.Simple<S,A> A convenience type with a simplified type signature for common lenses with both unified "larger" values and unified "smaller" values.interfacePrism<S,T, A, B> Prisms areIsosthat can fail in one direction.static interfacePrism.Simple<S,A> A convenience type with a simplified type signature for commonprismwith unifiedS/TandA/Btypes.Method parameters in com.jnape.palatable.lambda.optics with type arguments of type MonadRecModifier and TypeMethodDescriptionIso.trampolineM(Fn1<? super T, ? extends MonadRec<RecursiveResult<T, U>, Iso<S, ?, A, B>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Lens.trampolineM(Fn1<? super T, ? extends MonadRec<RecursiveResult<T, U>, Lens<S, ?, A, B>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Prism.trampolineM(Fn1<? super T, ? extends MonadRec<RecursiveResult<T, U>, Prism<S, ?, A, B>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction. -
Uses of MonadRec in com.jnape.palatable.lambda.optics.functions
Classes in com.jnape.palatable.lambda.optics.functions that implement MonadRecModifier and TypeClassDescriptionfinal classMatching<S,T, A, B> final classOver<S,T, A, B> Given anOptic, a function fromAtoB, and a "larger" valueS, produce aTby retrieving theAfrom theS, applying the function, and updating theSwith theBresulting from the function.final classPre<P extends Profunctor<?, ?, ? extends P>, S, T, A, B>final classRe<S,T, A, B> Turn anOpticwith a unary mapping that can be used for setting (e.g.final classSet<S,T, A, B> final classUnder<S,T, A, B> final classView<S,T, A, B> -
Uses of MonadRec in com.jnape.palatable.lambda.semigroup
Subinterfaces of MonadRec in com.jnape.palatable.lambda.semigroupModifier and TypeInterfaceDescriptioninterfaceSemigroup<A>ASemigroupis a closed, associative category. -
Uses of MonadRec in com.jnape.palatable.lambda.semigroup.builtin
Classes in com.jnape.palatable.lambda.semigroup.builtin that implement MonadRecModifier and TypeClassDescriptionfinal classAbsent<A>final classCollapse<_1,_2> final classCompose<A>final classIntersection<A>final classLeftAll<L,R> final classLeftAny<L,R> final classMax<A extends Comparable<A>>ASemigroupoverAthat chooses between two valuesxandyvia the following rules: Ifxis strictly less thany, returnyOtherwise, returnxfinal classMaxBy<A, B extends Comparable<B>>Given a mapping function from some typeAto someComparabletypeB, produce aSemigroupoverAthat chooses between two valuesxandyvia the following rules: Ifxis strictly less thanyin terms ofB, returnyOtherwise, returnxfinal classMaxWith<A>Given a comparator for some typeA, produce aSemigroupoverAthat chooses between two valuesxandyvia the following rules: Ifxis strictly less thanyin terms ofB, returnyOtherwise, returnxfinal classMerge<L,R> final classMin<A extends Comparable<A>>ASemigroupoverAthat chooses between two valuesxandyvia the following rules: Ifxis strictly greater thany, returnyOtherwise, returnxfinal classMinBy<A, B extends Comparable<B>>Given a mapping function from some typeAto someComparabletypeB, produce aSemigroupoverAthat chooses between two valuesxandyvia the following rules: Ifxis strictly greater thanyin terms ofB, returnyOtherwise, returnxfinal classMinWith<A>Given a comparator for some typeA, produce aSemigroupoverAthat chooses between two valuesxandyvia the following rules: Ifxis strictly greater thanyin terms ofB, returnyOtherwise, returnxfinal classRightAll<L,R> final classRightAny<L,R> final classRunAll<A> -
Uses of MonadRec in com.jnape.palatable.lambda.traversable
Classes in com.jnape.palatable.lambda.traversable that implement MonadRecModifier and TypeClassDescriptionfinal classMethod parameters in com.jnape.palatable.lambda.traversable with type arguments of type MonadRecModifier and TypeMethodDescription<B> LambdaIterable<B> LambdaIterable.trampolineM(Fn1<? super A, ? extends MonadRec<RecursiveResult<A, B>, LambdaIterable<?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.
traversinginto anIOand running it