Verse Library verse

03 Returns The Top Element Of The Stack

Initializes a stack data structure with a provided array of initial elements.

extracted-snippets/documentation/en-us/fortnite/stacks-and-queues-in-verse/03-returns-the-top-element-of-the-stack.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:    Returns the top element of the stack.
# Creates and returns a stack from an initial array of elements InitialElements.
CreateStack<public><constructor>(InitialElements:[]t where t:type) := stack(t):
Elements := InitialElements

Comments

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