Trying for a function that accepts an integer and returns the non-negative value of that integer which I figured out
Abs : int -> nat
Abs(num) == if num < 0
then -num
else num;
now I am trying to create another function that accepts a set of integers and returns an identical set where each element is the absolute value of the original value.
PositiveSet : set of int -> set of int
please help:(