Aces

  • Conditions
    Is empty
    Returns true if the stack is empty
    Compare top
    Allows you to compare the first value of the stack
    Compare length
    Allows you to compare the length of the stack
  • Actions
    Enqueue
    Adds an element at the end of the queue
    Dequeue
    Removes the first element of the queue
    Load
    Load the queue from a JSON string
    Clear
    Clears the queue
  • Expressions
    Peak
    Returns the first element of the queue
    Dequeue
    Returns the first element of the queue and removes it
    ToJSON
    Returns the queue in JSON format
    Length
    Returns the length of the queue

Download

1.0 Stable (17.24 KB)

Info

Statistics

  • Download count352 total downloads
  • Latest download count 352 downloads of latest version
  • Average download count1 downloads per day average

Owners

  • 3 Comments

  • Order by
Want to leave a comment? Login or Register an account!
  • can you describe a little bit more what this addon is for ?

    • Hello, there isn't much to say about it. It literally replicates the way Queues work as a data structure. I recommend you look at this page that explains it pretty well:

      https://en.wikipedia.org/wiki/Queue_(abstract_data_type)

      Basically, it's like a list, but instead of being able to add or remove data where you want, you can only add data to the back and remove and get data from the front. It's a simpler and more narrowed down version of an array, but it's really useful when you only need that type of data structure, and not a whole array.

      For example, if you record a set of actions in your game, in order to replay it later, you can use a queue data structure. There are lots of applications for this.