Very often i need to decompose a list to access separately to the item and everytime I have to create a code block like that: an annoying waste of time!
I think it could be very useful to have a node that is a kind of “opposite of List.Create node”…
Let me know if I understood you correctly. You want a node that has an automatically expanding OUT based on the count of the list? That would be an interesting thing I suppose, but with limited uses and I am not sure if that is even possible, as there is no way to activate/deactivate nodes automatically/based on another node’s statement.
Lol I crashed my Dynamo trying to type OUT[0…List.Count(inpList)]
Okay basically you want the same thing as the first codeblock in your picture but expands using a +/- controller to save time. I agree it would be interesting and helpful in some cases, I just don’t know how possible that is and if it is worth the hoops you might have to jump through to get it functional. I guess one of the developers would be a better person to ask.
I like the idea of the automatically expanding node for this, and I think it would be possible to write a custom node which does this. That said…
This use makes this hypothetical node inconsistent in terms of behavior… what happens to the rest of your list? What if I only want items 6, 5, 24…49, 137…
Further, passing all those outputs outside of a collector is just going to ruin performance as each output has an impact on RAM. Every time I have seen someone ‘split out’ a list like this, there is a step further up stream where they recombine them in some way. Leave them together and your performance boosts.
Instead, I recommend you look at if statements:
Object type is a date?
Format the date:
Object type is not a string?
Convert to string:
Return the original object;