Previous Post

Updated list blocks!

Next Post
Updated list blocks!
1 / 4
DESCRIPTION

By popular request, we've updated the list operation blocks to be more versatile and easier to use. Now you can easily create lists, read from them, iterate through them, and adjust them.

In the read block (see above), you can get any value or automatically pick a random value from the list.

In the set block (see below), you can set values, remove values, or insert and append values.

You can also unpack all values of a list in one step, so you don't have to use intermediate variables or separate blocks to get each value:

You can also iterate through the items of a list, just like in Python. This is much easier than maintaining your own own counter and getting each value from the list by its numeric index.

Pybricks PATREON 1 favs
VIEWS1
FILES4 files
POSTEDMar 8, 2024
ARCHIVEDJun 10, 2026