Uses of Package
com.jnape.palatable.lambda.functions.builtin.fn2
Packages that use com.jnape.palatable.lambda.functions.builtin.fn2
-
Classes in com.jnape.palatable.lambda.functions.builtin.fn2 used by com.jnape.palatable.lambda.functions.builtin.fn2ClassDescriptionEagerly apply a predicate to each element in an
Iterable, returningtrueif every element satisfies the predicate, andfalseotherwise.Eagerly apply a predicate to each element in anIterable, returningtrueif any element satisfies the predicate, andfalseotherwise.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.Lazily compute the cartesian product of anIterable<A>andIterable<B>, returning anIterable<Tuple2<A, B>>, the products as tuples of multiplicandAs and multiplierBs.Given twoComparablevalues of typeA, returntrueif the first value is strictly equal to the second value (according toComparable.compareTo(Object); otherwise, return false.Prepend an element to anIterable.Lazily skip the firstnelements from anIterableby returning anIterablethat begins iteration after thenthelement.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.Type-safe equality in function form; usesObject.equals(Object), not==.Lazily apply a predicate to each element in anIterable, returning anIterableof just the elements for which the predicate evaluated totrue.Iterate the elements in anIterable, applying a predicate to each one, returning the first element that matches the predicate, wrapped in aMaybe.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.Given twoComparablevalues of typeA, returntrueif the second value is strictly greater than the first value; otherwise, return false.Given twoComparablevalues of typeA, returntrueif the second value is greater than or equal to the first value according toComparable.compareTo(Object); otherwise, return false.Lazily group theIterableby returning anIterableof smallerIterables of sizek.Lazily inject the provided separator value between each value in the suppliedIterable.Given anand aFn1<A, B>, pop the head and apply it to the function, returning the result.SingletonHList<A>Given twoComparablevalues of typeA, returntrueif the second value is strictly less than the first value; otherwise, return false.Given twoComparablevalues of typeA, returntrueif the second value is less than or equal to the first value according toComparable.compareTo(Object)otherwise, return false.Lazily apply a function to each element in anIterable, producing anIterableof the mapped results.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.Deprecated.Deprecated.in favor of producing anIOfrom the givenBoundedBifunctorand explicitly running itLazily prepend each value with of theIterablewith the supplied separator value.Produce anIterableof a valuentimes.Given aTraversableofApplicatives and a pureApplicativeconstructor, traverse the elements from left to right, zipping theApplicatives together and collecting the results.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.Given anIterableand aComparatorover theIterableelement type, produce a sortedListof the original elements based on sorting applied by theComparator.Lazily limit theIterabletonelements by returning anIterablethat stops iteration after thenthelement, or the last element of theIterable, whichever comes first.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.Write all the elements of anIterabledirectly into an array of the specified type.Given anFn0of someCollectionC, create an instance ofCand add all of the elements in the providedIterableto the instance.Creates aTuple2from two values.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.Zip together twoIterables into a singleIterableofTuple2<A, B>.
IOfrom the givenFunctorand explicitly running it