I have a list of elements and I wish to update them:
from this: [\"Off\",\"Off\",\"Off\",\"Off\"]
[\"Off\",\"Off\",\"Off\",\"Off\"]
to this: [\"Off\",\"Off\",\"On\",\"Off\
[\"Off\",\"Off\",\"On\",\"Off\
Actually, for many cases (not always) where you'd use a List, a Data.Vector is a better choice.
It comes with an update function, see Hackage, that does exactly what you need.