findSpecialIndex

private fun Array<out Step>.findSpecialIndex(    invalidSpecialIndex: Int = 0,     elementToCheck: Step,     defaultIndexValue: Int,     onAssign: (Int) -> Int = { it }): Int

Method used to find the value of a special index

Return

the special index as Int

Parameters

invalidSpecialIndex

The value of an index to consider as not valid

elementToCheck

The step used to check the special index

defaultIndexValue

The value to use as default special index when not found other

onAssign

The lambda to execute to assign the value to the index