Support more of the functions from guava iterables
Issue #24
resolved
Iterables would be simpler to use if it had it's own copy of the guava iterables functions
* concat (concat(Iterable, Iterable) concat(Iterable, Iterable, Iterable) and so on)
* cycle
* find
* get getFirst getLast
* indexOf
* partition
* remove/retain
* take/take while
* drop/drop while
Comments (3)
-
reporter -
reporter - elementsEqual(Iterable<?> iterable1, Iterable<?> iterable2) - Determines whether two iterables contain equal elements in the same order.
- filter(Iterable<?> unfiltered, Class<T> type)
- frequency(Iterable<?> iterable, Object element) - Returns the number of elements in the specified iterable that equal the specified object.
- toArray(Iterable<? extends T> iterable, Class<T> type) - Copies an iterable's elements into an array.
-
reporter - changed status to resolved
I'm choosing not to implement the remaining duplicate methods for now. Folds should be brought up as a separate piece of work.
- Log in to comment
That leaves
concatcycletake whiledrop while