Index of the minimum of a sub-list

Hi I have several list with sub-lists and my goal is to obtain the index of the item which is the minimum in each sub-list.
In the example in the following picture, what I want to obtain is :
[0] 1
[1] 5

Anyone can help please…

Pierre

then Flatten

Option 2:

2 Likes

Should have been possible with IndexOf, but isn’t (reported the issue here)
You could try this work around for now.

1 Like

Thanks a lot Mohammadz…
but still don’t work in my case and I have the same code as you…

Thanks a lot Vikram
doesn’t not work yet for me …
watch my pict, it’s the same as you

@Pierre_MARECHAL Change Lacing to Longest at “IndexOf” node.

1 Like

Thanks Kulkul
:slight_smile:

always keep an eye on the lacing just as @Kulkul mentioned :wink: its very helpful.

2 Likes

i’m now tryng to select the second minium value of a sub-list. I have that nodes which works with a very small list but not on a full example (and my computer is quite powerful…)…Any idea to make it more efficient ??

listmin

The idea is to replace the minimum by the maximum and then re-do the action get the new minimum…maybe not the best idea…