Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.8.6
-
None
Description
Currently, these methods only work with lists and arrays. This should be generalized to Iterables. In particular, first() would be very handy for Sets (which may be ordered or contain just a single element). This would put an end to the infamous set.iterator().next() idiom.