Respuesta :
To write an oz function which selects from a list of integers those which are positive. for example, if the input is [1 ~2 3 ~4], the output should be [1 3], checl the code given below.
What is Oz?
In the Programming Systems Lab at the Université catholique de Louvain, a multiparadigm programming language called Oz was created for the purpose of teaching programming. The Concepts, Techniques, and Models of Computer Programming textbook is considered to be the bible of the subject.
Gert Smolka and his pupils created Oz for the first time in 1991. Together with Seif Haridi and Peter Van Roy's research team at the Swedish Institute of Computer Science, Oz's development was continued in 1996. The Mozart Consortium, a global organization that was founded in 1999 by Saarland University, the Swedish Institute of Computer Science, and Université catholique de Louvain, has been continuously working on Oz since that time.
//CODE//
fun {Map Xs}
case Xs of nil then nil
[] X|Xr then X|{Filter Xr fun {$ X} X>=0 end}
end
end
{System.show {Map [1 ~2 3 4]}}
Output will be [1 3 4]
Learn more about programming language
https://brainly.com/question/16936315
#SPJ4