views:

106

answers:

3

Are there any good libraries of functions to use with collections in Java. I'm thinking along the lines of implementations of partition, take, drop, takeWhile, dropWhile, map, filter, reduce...? I can write them myself, but it feels like re-inventing the wheel.

Thanks, Alex

+1  A: 

Google Collections (Guava) is great! Collections2 and Iterables are utility classes worth looking at. They both have a filter and transform (like map) method, among many other things.

Mark Peters
Guava looks, ok... but I see nothing like take, drop, takeWhile or dropWhile
Alex Baranosky
+4  A: 

Lambdaj is awesome.

bingle
take, drop, takeWhile or dropWhile?
Alex Baranosky