So, i’ve been encountering this problem a few times lately, this is just an example.
I was trying to get an item from one list to the beggining of each of the sublists contained in another list. I tried using the List.AddToFront node but it didn’t do exactly what I wanted:
So I ended up finding a work around creating a custom node that would work as a function using list.map:
There must be a better way of doing this without having to create a custom node every time something like this happens. So I thought I would try to replicate what I’m doing with the custom node through functions, but it’s not working.
I see that the node List.AddItemToFront behaves differently when inside a function. It only reads the first element of each sublist. I tried all sorts of combinations but none of them worked.
Hope someone could share a bit of light on the subject. Thanks in advance.