Handbook · Reference · Blockly · Lists

Blockly: Lists

Where in the UI. Scripts tab toolbox.

Stock lists plus Containd concat/append (interpreter-safe).

Block idRead asPurpose
lists_create_emptycreate emptyEmpty list.
lists_create_withcreate withCreate a list from items.
containd_lists_concatconcatJoin two lists into a new list (does not modify the inputs)
containd_lists_appendappendAppend all items from the source list onto the target list in place
lists_repeatrepeatList of one value repeated n times.
lists_lengthlengthLength of a list.
lists_isEmptyisEmptyWhether a list is empty.
lists_indexOfindexOfFind an item in a list.
lists_getIndexgetIndexGet an item from a list.
lists_setIndexsetIndexSet or insert an item in a list.
lists_getSublistgetSublistSlice of a list.
lists_splitsplitSplit text to list, or join list to text.
lists_sortsortSort a list.
lists_reversereverseReverse a list.