@return a Stream with the provided iterable as its source.
(Iterable<T> iterable)
| 17 | * @return a Stream with the provided iterable as its source. |
| 18 | */ |
| 19 | public static <T> Stream<T> stream(Iterable<T> iterable) { |
| 20 | return StreamSupport.stream(iterable.spliterator(), false); |
| 21 | } |
| 22 | |
| 23 | /** |
| 24 | * @return a Stream with the provided array as its source. |