figure out how to separate this like the rest of the shortcuts (see shortcuts.kt)
*/
public operator fun Axis.invoke(node: String): LocationPath = this(NodeTest(node))
/**
* shortcut for an [ExpressionBuilder.position] predicate
*/
//TODO: figure out how to separate this like the rest of the shortcuts (see shortcuts.kt)
public operator fun LocationPath.get(index: Int): LocationPath = this[{ position() equal index.toString() }]
}
No newline at end of file
ndex 9c24f8b..3cc28c3 100644
++ b/src/commonMain/kotlin/NodeTest.kt