Verse Library verse

01 Verse Implementation

Defines a generic stack data structure class using an internal array to store elements of any specified type.

extracted-snippets/documentation/en-us/fortnite/stacks-and-queues-in-verse/01-verse-implementation.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/fortnite/stacks-and-queues-in-verse
# Local doc:  epic-docs/documentation/en-us/fortnite/stacks-and-queues-in-verse.md
# Section:    Verse Implementation
stack<public>(t:type) := class:
Elements<internal>:[]t = array{}

Comments

    Sign in to vote, comment, or suggest an edit. Sign in