Groovy examples
groovy-collections
- Calculate average of list
- Combine two lists
- Convert list to map
- Count non empty strings in arraylist
- Count occurrences of element in list
- Count occurrences of key or value in map
- Count true values in list
- Filter list by class field
- Find max value in arraylist
- Find min value in arraylist
- Get First/Last element in ArrayList
- Get a subset of a map
- Get longest string in list
- Get smallest string in list
- Limit number of elements in arraylist
- Partition / Split / Collate arraylist
- Remove null from list
- Sort map dictionary by key
- Sort map dictionary by value
- Sum elements of arraylist