asRepeatable

fun <R> asRepeatable(block: Node.RepeatableCapture.() -> R): R?

Executes the block with this node as a RepeatableCapture receiver if it is one.

Return

The result of block, or null if this node is not a RepeatableCapture

Parameters

R

The return type of the block

block

A function to execute with the RepeatableCapture receiver