Uses of Package
com.jnape.palatable.lambda.functions.builtin.fn3
Packages that use com.jnape.palatable.lambda.functions.builtin.fn3
-
Classes in com.jnape.palatable.lambda.functions.builtin.fn3 used by com.jnape.palatable.lambda.functions.builtin.fn3ClassDescriptionGiven 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.Given an
IOthat 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.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 valueGiven 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.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.Given aComparatorfrom some typeAand two values of typeA, return aComparisonRelationof the first value with reference to the second value (according toComparator.compare(Object, Object).Given anIterableofAs, a starting valueB, and a, iteratively accumulate over theFn2<B, A, B>Iterable, ultimately returning a finalBvalue.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.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.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.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.Lift into and apply anFn2to twoApplicativevalues, returning the result inside the sameApplicativecontext.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.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.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.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.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.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.Zip together twoIterables by applying a zipping function to the successive elements of eachIterableuntil one of them runs out of elements.