On Nov 23, 2007, at 3:58 PM, [EMAIL PROTECTED] wrote:
For the ForAll/2 procedure, the standard map procedure in scheme can be used with any number of input lists, and map across them. Here's an example of taking two lists and using map to do the Oz ForAll but on both lists:
(map cons '(a b c) '(1 2 3))

Instead of mapping with functions of N arguments as in Scheme, in Oz you can simple Map over a list of lists with a function expecting a list as argument.

Best
Torsten

--
Torsten Anders
Interdisciplinary Centre for Computer Music Research
University of Plymouth
Office:   +44-1752-233667
Private: +44-1752-663492
http://strasheela.sourceforge.net
http://www.torsten-anders.de




_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to