[Oz] Multiple evaluation question
Tobias Mueller
tmueller at ps.uni-sb.de
Wed Feb 10 10:34:29 CET 1999
Hello Kent,
you can write a procedure (actually a function but this is not important
here) and then apply this procedure to different items:
proc {Test Item R}
R = (Item.attr1 \=: Item.attr2)
end
You can use this procedure and Map to reflect the validity of your
constraint of a list of items:
ItemsList = [item(attr1:1 attr2:2) ... item(attr1:1 attr2:1)]
Rs = {Map ItemsList Test}
=> Rs = [1 ... 0]
Hope that answers your question.
Regards
-- Tobias
-------------------------------------------------
Tobias Müller, http://www.ps.uni-sb.de/~tmueller/
-
Please send submissions to users at mozart-oz.org
and administriva mail to users-request at mozart-oz.org.
The Mozart Oz web site is at http://www.mozart-oz.org/.
More information about the mozart-users
mailing list