De-queue Queue (Experimental) (Expression) — Skript

Addon: Skript · Category: Expression · Since: 2.10 (experimental)

Syntax

(de|un)queued %queue%

Description

Requires the <code>using queues</code> experimental feature flag to be enabled.

Unrolls a queue into a regular list of values, which can be stored in a list variable. The order of the list will be the same as the order of the elements in the queue. If a list variable is set to this, it will use numerical indices. The original queue will not be changed.

Examples

set {queue} to a new queue
add "hello" and "there" to {queue}
set {list::*} to dequeued {queue}

View source