I have a huge list with huge sublists of the form
I am looking for a way to manipulate these sublists based on the positions of the elements. Something like
but without having to write the whole pattern. Is there any way to specify such manipulation based on the position of the element? Something like
list/.#[] & -> #[] - 1 &
that would work?