subPath

abstract 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


open fun subPath(from: Int): Path(source)

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

Return

a new sub path from from to the last cell

Parameters

from

the index position at which the sub path should start

Throws

if from is greater than the length of this path