build

fun build(): List<Entity>

Builds and returns the list of entities in the stack.

Return

immutable list of entities that were added to the stack