makeList

fun makeList(name: String = IdGenerator.makeRandomId(6), value: JsonArray): ScratchList

Creates a global list (scoped to the stage).

Parameters

name

The name of the list.

value

The initial contents.


fun makeList(name: String = IdGenerator.makeRandomId(6), block: JsonArrayBuilder.() -> Unit): ScratchList

Creates a global list with a builder (scoped to the stage).

Parameters

name

The name of the list.

block

The builder for the list's contents.