This class add a case insensitive get to a List of Pairs of String, as if it was a Map
Add utility methods to Lists
Compute the deltas between two sequences of a given type.
Compute the deltas between two sequences of a given type. Apply the function based on the differences between the two lists. The resulting List of commands will be returned. The algorithm used to calculate the diffs is not very efficient and can degrade to O(n^2), so it's not great for large collections. Internally the Seq[T] are converted to a List[T]. Finally, it's highly recommended that T be immutable and does proper equals testing (e.g., a case class).
Compute the deltas between two sequences of a given type.
Compute the deltas between two sequences of a given type. Apply the function based on the differences between the two lists. The resulting List of commands will be returned.
Convert a java.util.Enumeration to a List[T]
Convert a java.util.Enumeration to a List[String] using the toString method on each element
Returns the first application of f to an element of in that results in a Full Box.
Returns the first application of f to an element of in that results in a Full Box. If f applied to an element of in results in an Empty Box, then f will be applied to the rest of the elements of in until a Full Box results. If the list runs out then an Empty Box is returned.
a list of elements to which f can be applied
a Box containing the first Full Box or Empty if f never returns a Full Box
Returns a Full Box with the first element x of the list in for which f(x) evaluates to true.
Returns a Full Box with the first element x of the list in for which f(x) evaluates to true. If f(x) evaluates to false for every x, then an Empty Box is returned.
a list of elements to which f can be applied
a function that can be applied to elements of in
a Box containing the found element (or Empty if not found)
Return the first element of a List or a default value if the list is empty
Return a list containing the element f if the expression is true
adds the ciGet method to a List of Pairs of Strings
Given a list, return all the permutations of the list.
Given a list, return all the permutations of the list.
-- the list
all the permutations of the list
Given a list, return all the permutations including the removal of items (does not return a Nil list unless in is Nil).
Given a list, return all the permutations including the removal of items (does not return a Nil list unless in is Nil).
the list to permute
all the permutations of the list including sublists, sorted in longest to shortest
Given an incoming list, return a set of lists that is the original list rotated through all its positions
Given an incoming list, return a set of lists that is the original list rotated through all its positions
the list to rotate
all the rotations of the list
The ListHelpers trait provides useful functions which can be applied to Lists.