I want to swap an item in a list in oz.
So let's say I have L = [ 1 2 3], and I would like it to be L = [1 4 3].
How would one go about doing that? I see
{List.member X +Ys ?B}
And other various possible functions on https://mozart.github.io/mozart-v1/doc-1.4.0/base/list.html
But I don't really understand the syntax of these expressions. I am very new to Oz.