alright, so I might just map over the list then and get all the items (in my case it's a list of attribue sets and I need the attributes)?
it's just that i know in advance how many items there are going to be, so I didn't think of mapping immediately
okay so there is lib.lists.imap0
and lib.lists.imap1
and builtins.map
... usually I'd just grab the last, but is there a major difference?
Well what's the specific problem? Maybe I can give you a more specific example.
imap0 iterates a list with an additional index starting at 0, imap1 is same but starting at 1.
If you don't need an index to keep track of them map is fine, as is always in scope so you can just type map
instead of builtins.map
I do think that answers the problem :smile:
Andreas has marked this topic as resolved.
Last updated: Nov 15 2024 at 13:04 UTC