ForLoop

class ForLoop(    val identifier: Identifier,     val expression: Expression,     val body: Block) : Statement

Iterates over a sequence and executes a Block for each element

Constructors

Link copied to clipboard
fun ForLoop(    identifier: Identifier,     expression: Expression,     body: Block)

Properties

Link copied to clipboard
val body: Block

the Block to be executed for each element in the sequence.

Link copied to clipboard
val expression: Expression

an expression evaluating to a sequence that can be iterated over.

Link copied to clipboard
val identifier: Identifier

the name to be given to the constant accessible in the body that holds the element for the current iteration.