Gets a new Iterator starting at position pos

var iter = [10,20,30,40,50].iterator_from(2)
assert iter.to_a == [30, 40, 50]

Property definitions

core $ SequenceRead :: iterator_from
	# Gets a new Iterator starting at position `pos`
	#
	#     var iter = [10,20,30,40,50].iterator_from(2)
	#     assert iter.to_a == [30, 40, 50]
	fun iterator_from(pos: Int): IndexedIterator[E]
	do
		var res = iterator
		while pos > 0 and res.is_ok do
			res.next
			pos -= 1
		end
		return res
	end
lib/core/collection/abstract_collection.nit:1037,2--1049,4

core $ RopeChars :: iterator_from
	redef fun iterator_from(i) do return new RopeCharIterator.from(target, i)
lib/core/text/ropes.nit:652,2--74

core $ RopeBytes :: iterator_from
	redef fun iterator_from(i) do return new RopeByteIterator.from(target, i)
lib/core/text/ropes.nit:705,2--74

core $ FlatStringCharView :: iterator_from
	redef fun iterator_from(start) do return new FlatStringCharIterator(target, start)
lib/core/text/flat.nit:780,2--83

core $ FlatStringByteView :: iterator_from
	redef fun iterator_from(start) do return new FlatStringByteIterator(target, start)
lib/core/text/flat.nit:853,2--83

pthreads $ ConcurrentSequenceRead :: iterator_from
	redef fun iterator_from(index)
	do
		mutex.lock
		var r = real_collection.iterator_from(index)
		mutex.unlock
		return r
	end
lib/pthreads/concurrent_collections.nit:228,2--234,4

core $ U16StringCharView :: iterator_from
	redef fun iterator_from(start) do return new U16StringCharIterator(target, start)
lib/core/text/u16_string.nit:228,2--82

core $ FlatBufferByteView :: iterator_from
	redef fun iterator_from(pos) do return new FlatBufferByteIterator(target, pos)
lib/core/text/flat.nit:1193,2--79

core $ FlatBufferCharView :: iterator_from
	redef fun iterator_from(pos) do return new FlatBufferCharIterator(target, pos)
lib/core/text/flat.nit:1276,2--79