savvysite.blogg.se

Grep unique only
Grep unique only





Intersect( Collection right, Comparator comparator) The 2-arg closure along with the first item.Ĭreate a Collection composed of the intersection of both collections. Iterates through the given Collection, passing in the initial value to Inject( Object initialValue, Closure closure) Uses the head of the Collection as the initial value, and iterates over the tail. Performs the same function as the version of inject that takes an initial value, but Kinds of filters like regular expressions, classes, ranges etc.

grep unique only

The given filter - calling the Object#isCase() Iterates over the collection of items and returns each item that matches Using the IDENTITY Closure as a filter - effectively returning all elements which satisfy Groovy truth. Iterates over the collection returning each element that matches Support the subscript operator for Collection. Passing each item and the item's index (a counter starting atįinds the first item matching the IDENTITY Closure (i.e. matching Groovy truth).įinds the first value matching the closure condition.įinds the items matching the IDENTITY Closure (i.e. matching Groovy truth).įinds all values matching the closure condition. Iterates through a Collection, passing each item to the given closure.

grep unique only

Into a new value using the closure as a transformer. Recursively iterates through this collection transforming each non-Collection value Modifies the collection by adding all the elements in the specified array to the collection.Īdds all items from the iterator to the Collection.Ĭoerce a collection instance to a boolean value.Ī convenience method for creating an immutable Collection.Ī convenience method for creating a synchronized Collection.Ĭonverts the given collection to another type.Ĭreates an unmodifiable view of a Collection.

grep unique only

Adds all items from the iterable to the Collection.







Grep unique only