subPath

open override fun subPath(from: Int, to: Int): Path(source)

Creates a new sub path that includes all cells from this path starting at from (inclusive) to to (inclusive).

Return

a new sub path from from to to

Parameters

from

the index position at which the sub path should start

to

the index position at which the sub path should end

Throws

if to or from are greater than the length of this path