Uses of Interface
com.jnape.palatable.lambda.functions.Fn2
Packages that use Fn2
Package
Description
-
Uses of Fn2 in com.jnape.palatable.lambda.adt
Methods in com.jnape.palatable.lambda.adt with parameters of type Fn2 -
Uses of Fn2 in com.jnape.palatable.lambda.adt.product
Methods in com.jnape.palatable.lambda.adt.product with parameters of type Fn2 -
Uses of Fn2 in com.jnape.palatable.lambda.functions
Subinterfaces of Fn2 in com.jnape.palatable.lambda.functionsModifier and TypeInterfaceDescriptioninterfaceFn3<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.Methods in com.jnape.palatable.lambda.functions that return Fn2Modifier and TypeMethodDescriptionLeft-to-right composition between different arity functions.Partially apply this function by taking its first argument.Partially apply this function by taking its first two arguments.Partially apply this function by taking its first three arguments.Partially apply this function by taking its first four arguments.Partially apply this function by taking its first five arguments.Partially apply this function by taking its first six arguments.Right-to-left composition between different arity functions.Contravariantly mapA <- B.static <A,B, C> Fn2 <A, B, C> static <A,B, C> Fn2 <A, B, C> Contravariantly map over the argument to this function, producing a function that takes the new argument type, and produces the same result.Fn2.discardR(Applicative<D, Fn1<A, ?>> appB) Sequence both thisApplicativeandappB, discardingappB'sresult and returning thisApplicative.Fn2.flip()Flip the order of the arguments.static <A,B, C> Fn2 <A, B, C> Static method to aid inference.static <A,B, C> Fn2 <A, B, C> Fn2.fromBiFunction(BiFunction<? super A, ? super B, ? extends C> biFunction) Static factory method for wrapping aBiFunctionin anFn2.Fn3.uncurry()Fn1.widen()Widen this function's argument list by prepending an ignored argument of any type to the front.Methods in com.jnape.palatable.lambda.functions with parameters of type Fn2Modifier and TypeMethodDescriptionLeft-to-right composition between different arity functions.Right-to-left composition between different arity functions.Right-to-left composition between different arity functions.static <A,B, C> Fn2 <A, B, C> Static method to aid inference.static <A,B, C, D>
Fn3<A, B, C, D> static <A,B, C, D, E>
Fn4<A, B, C, D, E> static <A,B, C, D, E, F>
Fn5<A, B, C, D, E, F> static <A,B, C, D, E, F, G>
Fn6<A, B, C, D, E, F, G> static <A,B, C, D, E, F, G, H>
Fn7<A, B, C, D, E, F, G, H> static <A,B, C, D, E, F, G, H, I>
Fn8<A, B, C, D, E, F, G, H, I> static <A,B> Fn1 <A, B> Construct anFn1that has a reference to itself in scope at the time it is executed (presumably for recursive invocations).default <B> Fn0<B> Method parameters in com.jnape.palatable.lambda.functions with type arguments of type Fn2Modifier and TypeMethodDescriptionstatic <A,B, C, D>
Fn3<A, B, C, D> static <A,B, C, D, E>
Fn4<A, B, C, D, E> static <A,B, C, D, E, F>
Fn5<A, B, C, D, E, F> static <A,B, C, D, E, F, G>
Fn6<A, B, C, D, E, F, G> static <A,B, C, D, E, F, G, H>
Fn7<A, B, C, D, E, F, G, H> static <A,B, C, D, E, F, G, H, I>
Fn8<A, B, C, D, E, F, G, H, I> -
Uses of Fn2 in com.jnape.palatable.lambda.functions.builtin.fn1
Classes in com.jnape.palatable.lambda.functions.builtin.fn1 that implement Fn2Modifier and TypeClassDescriptionfinal classConstantly<A,B> A function that takes two arguments and always returns the first argument.final classNot<A>Negate a predicate function. -
Uses of Fn2 in com.jnape.palatable.lambda.functions.builtin.fn2
Classes in com.jnape.palatable.lambda.functions.builtin.fn2 that implement Fn2Modifier 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(java.lang.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 classDeprecated.final 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>.Methods in com.jnape.palatable.lambda.functions.builtin.fn2 that return Fn2Modifier and TypeMethodDescriptionstatic <A,B, FAB extends BoundedBifunctor<A, B, ? super A, ? super B, ?>>
Fn2<Fn1<? super B, ? extends IO<?>>, FAB, FAB> Deprecated.Methods in com.jnape.palatable.lambda.functions.builtin.fn2 with parameters of type Fn2Modifier and TypeMethodDescriptionstatic <A,B, C> C static <A,B> Lazy <B> MagnetizeBy.magnetizeBy(Fn2<? super A, ? super A, ? extends Boolean> predicate) MagnetizeBy.magnetizeBy(Fn2<? super A, ? super A, ? extends Boolean> predicate, Iterable<A> as) ReduceLeft.reduceLeft(Fn2<? super A, ? super A, ? extends A> fn) static <A> Maybe<A> ReduceLeft.reduceLeft(Fn2<? super A, ? super A, ? extends A> fn, Iterable<A> as) ReduceRight.reduceRight(Fn2<? super A, ? super A, ? extends A> fn) static <A> Maybe<A> ReduceRight.reduceRight(Fn2<? super A, ? super A, ? extends A> fn, Iterable<A> as) -
Uses of Fn2 in com.jnape.palatable.lambda.functions.builtin.fn3
Classes in com.jnape.palatable.lambda.functions.builtin.fn3 that implement Fn2Modifier 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.Methods in com.jnape.palatable.lambda.functions.builtin.fn3 that return Fn2Modifier and TypeMethodDescriptionstatic <A extends Comparable<A>>
Fn2<A, A, A> Clamp.clamp(A lower) static <A> Fn2<A, A, ComparisonRelation> Compare.compare(Comparator<A> comparator) static <A,B, C, App extends Applicative<?, App>, AppC extends Applicative<C, App>>
Fn2<Applicative<A, App>, Applicative<B, App>, AppC> Methods in com.jnape.palatable.lambda.functions.builtin.fn3 with parameters of type Fn2Modifier and TypeMethodDescriptionFoldRight.checkedApply(Fn2<? super A, ? super Lazy<B>, ? extends Lazy<B>> fn, Lazy<B> acc, Iterable<A> as) LiftA2.checkedApply(Fn2<? super A, ? super B, ? extends C> fn, Applicative<A, App> appA, Applicative<B, App> appB) static <A,B> B static <A,B> Lazy <B> FoldRight.foldRight(Fn2<? super A, ? super Lazy<B>, ? extends Lazy<B>> fn, Lazy<B> acc, Iterable<A> as) static <A,B, C, App extends Applicative<?, App>, AppC extends Applicative<C, App>>
Fn2<Applicative<A, App>, Applicative<B, App>, AppC> static <A,B, C, App extends Applicative<?, App>, AppC extends Applicative<C, App>>
Fn1<Applicative<B, App>, AppC> LiftA2.liftA2(Fn2<? super A, ? super B, ? extends C> fn, Applicative<A, App> appA) static <A,B, C, App extends Applicative<?, App>, AppC extends Applicative<C, App>>
AppCLiftA2.liftA2(Fn2<? super A, ? super B, ? extends C> fn, Applicative<A, App> appA, Applicative<B, App> appB) static <A,B> Iterable <B> static <A,B, C> Iterable <C> -
Uses of Fn2 in com.jnape.palatable.lambda.functions.builtin.fn4
Classes in com.jnape.palatable.lambda.functions.builtin.fn4 that implement Fn2Modifier 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>Methods in com.jnape.palatable.lambda.functions.builtin.fn4 that return Fn2Modifier and TypeMethodDescriptionIfThenElse.ifThenElse(Fn1<? super A, ? extends Boolean> predicate, Fn1<? super A, ? extends B> thenCase) static <A,B, C, D, App extends Applicative<?, App>, AppD extends Applicative<D, App>>
Fn2<Applicative<B, App>, Applicative<C, App>, AppD> LiftA3.liftA3(Fn3<A, B, C, D> fn, Applicative<A, App> appA) -
Uses of Fn2 in com.jnape.palatable.lambda.functions.builtin.fn5
Classes in com.jnape.palatable.lambda.functions.builtin.fn5 that implement Fn2Modifier 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.Methods in com.jnape.palatable.lambda.functions.builtin.fn5 that return Fn2Modifier and TypeMethodDescriptionstatic <A,B, C, D, E, App extends Applicative<?, App>, AppE extends Applicative<E, App>>
Fn2<Applicative<C, App>, Applicative<D, App>, AppE> LiftA4.liftA4(Fn4<A, B, C, D, E> fn, Applicative<A, App> appA, Applicative<B, App> appB) -
Uses of Fn2 in com.jnape.palatable.lambda.functions.builtin.fn6
Classes in com.jnape.palatable.lambda.functions.builtin.fn6 that implement Fn2Modifier 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.Methods in com.jnape.palatable.lambda.functions.builtin.fn6 that return Fn2Modifier and TypeMethodDescriptionstatic <A,B, C, D, E, F, App extends Applicative<?, App>, AppF extends Applicative<F, App>>
Fn2<Applicative<D, App>, Applicative<E, App>, AppF> LiftA5.liftA5(Fn5<A, B, C, D, E, F> fn, Applicative<A, App> appA, Applicative<B, App> appB, Applicative<C, App> appC) -
Uses of Fn2 in com.jnape.palatable.lambda.functions.builtin.fn7
Classes in com.jnape.palatable.lambda.functions.builtin.fn7 that implement Fn2Modifier 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.Methods in com.jnape.palatable.lambda.functions.builtin.fn7 that return Fn2Modifier and TypeMethodDescriptionstatic <A,B, C, D, E, F, G, App extends Applicative<?, App>, AppG extends Applicative<G, App>>
Fn2<Applicative<E, App>, Applicative<F, App>, AppG> LiftA6.liftA6(Fn6<A, B, C, D, E, F, G> fn, Applicative<A, App> appA, Applicative<B, App> appB, Applicative<C, App> appC, Applicative<D, App> appD) -
Uses of Fn2 in com.jnape.palatable.lambda.functions.builtin.fn8
Classes in com.jnape.palatable.lambda.functions.builtin.fn8 that implement Fn2Modifier 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.Methods in com.jnape.palatable.lambda.functions.builtin.fn8 that return Fn2Modifier and TypeMethodDescriptionstatic <A,B, C, D, E, F, G, H, App extends Applicative<?, App>, AppH extends Applicative<H, App>>
Fn2<Applicative<F, App>, Applicative<G, App>, AppH> LiftA7.liftA7(Fn7<A, B, C, D, E, F, G, H> fn, Applicative<A, App> appA, Applicative<B, App> appB, Applicative<C, App> appC, Applicative<D, App> appD, Applicative<E, App> appE) -
Uses of Fn2 in com.jnape.palatable.lambda.functions.recursion
Classes in com.jnape.palatable.lambda.functions.recursion that implement Fn2Modifier and TypeClassDescriptionfinal 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). -
Uses of Fn2 in com.jnape.palatable.lambda.functions.specialized
Subinterfaces of Fn2 in com.jnape.palatable.lambda.functions.specializedModifier and TypeInterfaceDescriptioninterfaceBiMonoidFactory<A,B, C> interfaceBiPredicate<A,B> interfaceBiSemigroupFactory<A,B, C> interfaceMonoidFactory<A,B> interfaceSemigroupFactory<A,B> Methods in com.jnape.palatable.lambda.functions.specialized that return Fn2Modifier and TypeMethodDescriptionContravariantly mapA <- B.Methods in com.jnape.palatable.lambda.functions.specialized with parameters of type Fn2Modifier and TypeMethodDescriptiondefault <Y,Z> BiPredicate <Y, Z> Right-to-left composition between different arity functions. -
Uses of Fn2 in com.jnape.palatable.lambda.internal.iteration
Fields in com.jnape.palatable.lambda.internal.iteration declared as Fn2Constructors in com.jnape.palatable.lambda.internal.iteration with parameters of type Fn2 -
Uses of Fn2 in com.jnape.palatable.lambda.monad.transformer.builtin
Methods in com.jnape.palatable.lambda.monad.transformer.builtin with parameters of type Fn2Modifier 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). -
Uses of Fn2 in com.jnape.palatable.lambda.monoid
Subinterfaces of Fn2 in com.jnape.palatable.lambda.monoid -
Uses of Fn2 in com.jnape.palatable.lambda.monoid.builtin
Classes in com.jnape.palatable.lambda.monoid.builtin that implement Fn2Modifier 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(com.jnape.palatable.lambda.functions.Fn2<? super L, ? super L, ? extends L>, com.jnape.palatable.lambda.functions.Fn2<? super R, ? super R, ? extends R>, com.jnape.palatable.lambda.adt.Either<L, R>...), 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.Fields in com.jnape.palatable.lambda.monoid.builtin with type parameters of type Fn2Modifier and TypeFieldDescriptionMergeHMaps.bindingsprivate final MergeHMaps.Φ<Fn2<HMap, HMap, HMap>> MergeHMaps.defaultBindingMethods in com.jnape.palatable.lambda.monoid.builtin that return Fn2Modifier and TypeMethodDescriptionMergeHMaps.merge(TypeSafeKey<?, A> key, Semigroup<Maybe<A>> semigroup) Constructor parameters in com.jnape.palatable.lambda.monoid.builtin with type arguments of type Fn2ModifierConstructorDescriptionprivateMergeHMaps(Map<TypeSafeKey<?, ?>, Fn2<HMap, HMap, HMap>> bindings, MergeHMaps.Φ<Fn2<HMap, HMap, HMap>> defaultBinding) privateMergeHMaps(Map<TypeSafeKey<?, ?>, Fn2<HMap, HMap, HMap>> bindings, MergeHMaps.Φ<Fn2<HMap, HMap, HMap>> defaultBinding) -
Uses of Fn2 in com.jnape.palatable.lambda.optics
Methods in com.jnape.palatable.lambda.optics with parameters of type Fn2Modifier and TypeMethodDescriptionstatic <S,T, A, B>
Lens<S, T, A, B> Static factory method for creating a lens from a getter function and a setter function.static <S,A> Lens.Simple <S, A> Lens.simpleLens(Fn1<? super S, ? extends A> getter, Fn2<? super S, ? super A, ? extends S> setter) Static factory method for creating a simple lens from a getter function and a setter function. -
Uses of Fn2 in com.jnape.palatable.lambda.optics.functions
Classes in com.jnape.palatable.lambda.optics.functions that implement Fn2Modifier 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 classSet<S,T, A, B> final classUnder<S,T, A, B> final classView<S,T, A, B> Methods in com.jnape.palatable.lambda.optics.functions that return Fn2 -
Uses of Fn2 in com.jnape.palatable.lambda.semigroup
Subinterfaces of Fn2 in com.jnape.palatable.lambda.semigroupModifier and TypeInterfaceDescriptioninterfaceSemigroup<A>ASemigroupis a closed, associative category. -
Uses of Fn2 in com.jnape.palatable.lambda.semigroup.builtin
Classes in com.jnape.palatable.lambda.semigroup.builtin that implement Fn2Modifier 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>
IOfrom the givenFunctorand explicitly running it