Handbook · Reference · Blockly · Lists
Blockly: Lists
Where in the UI. Scripts tab toolbox.
Stock lists plus Containd concat/append (interpreter-safe).
| Block id | Read as | Purpose |
|---|---|---|
lists_create_empty | create empty | Empty list. |
lists_create_with | create with | Create a list from items. |
containd_lists_concat | concat | Join two lists into a new list (does not modify the inputs) |
containd_lists_append | append | Append all items from the source list onto the target list in place |
lists_repeat | repeat | List of one value repeated n times. |
lists_length | length | Length of a list. |
lists_isEmpty | isEmpty | Whether a list is empty. |
lists_indexOf | indexOf | Find an item in a list. |
lists_getIndex | getIndex | Get an item from a list. |
lists_setIndex | setIndex | Set or insert an item in a list. |
lists_getSublist | getSublist | Slice of a list. |
lists_split | split | Split text to list, or join list to text. |
lists_sort | sort | Sort a list. |
lists_reverse | reverse | Reverse a list. |