IterablePatternIterator<T> constructor
IterablePatternIterator<T> (
- Iterable<
T> array
Implementation
IterablePatternIterator(Iterable<T> array)
: _values = array.toList(),
_position = -1,
_length = array.length,
// _length が 0 の場合 _values.first で error.
_current = array.length == 0 ? null : array.first;