I found info about a module in Oz that contains procedures operating on lists here: https://mozart.github.io/mozart-v1/doc-1.4.0/base/list.html
But I have been trying different procedures in different ways, for example:
declare
proc {Length L}
I
in
{List.length +L ?I}
{Browse I}
end
declare
L=[1 2 3 4]
in
{Length L}
And what I get is a type error, I hope you can help me to know why, I'm very new using OZ