Dear Oliver,
The notation A | B | nil is a shorthand for the following (the
creation of a nested tuple)
'|'(A '|'(B nil))
which is equivalent to
[A B]
Best wishes,
Torsten
On 07.02.2010, at 17:45, Oliver Mooney wrote:
Hi all,
How do I refer to the cons function or | operator to use it in a
fold or map? I can always wrap it in a function like:
fun {MyCons A B} A|B end
but I don't see how to refer to the | directly (like I can to +
using Number.'+' for example).
Thanks,
Oliver.
<ATT00001..txt>
--
Torsten Anders
Interdisciplinary Centre for Computer Music Research
University of Plymouth
Office: +44-1752-586219
Private: +44-1752-558917
http://strasheela.sourceforge.net
http://www.torsten-anders.de
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users