Good morning.
I’m trying to learn some textual programming language I’m new to this.
I found a definition code that what it does in essence is to be able to replace elements and sublists of a general list starting from the base list and introducing the index and the new elements to replace… well the thing is that I try to understand what is its logic seen from the human language following each line of code what meaning does each of the instructions have…
Thank you very much for your time, this will help me a lot in being able to understand the codes and eventually generate my own way of reading and understanding them… thank you very much for your help.
The first part is obviously the variable, lst. The part that follows is an optional input to define the object type and/or structure of that variable. Because Dynamo automatically iterates lists, you sometimes have to explicitly define the structure of the input so that Dynamo iterates the data correctly, otherwise it has to make assumptions. It’s similar to how list levels allow you to define the structure within an input.
In this case all the variables are var (typeless) with a specified structure of at least an @L3 list.
item: var represents a singleton list: var[] represents a list listOfList: var[]..[] represents a list with multiple levels
I’ll also chime in here… the code you’ve found online is not Python code, but design script. They have a lot of similarities, but code from one bit won’t necessarily run in the other (in fact it’d be rare). Saving as a .py is likely not a great idea as a result.