Jonathan Kelly writes: > Hi, > '|' is the list constructor, X|Xs builds a new list by putting X on the front of the list Xs.
[E1 E2 E3 ... EN] is shorthand for E1|(E2|(E3|...(EN|nil))))) > Can someone explain that? What is the difference between > [ nil nil ] This is a list with two elements, each of which are the empty list. This is equivalent to nil|(nil|nil) > and > nil | nil > which is just (nil|nil). This could also be written as [ nil ]. > Cheers, > Jonathan. > Hope that helps. > PS ... I'm really starting to love Oz/Mozart, despite that it makes my > head hurt. :) > Soon it will be the other languages that make your head hurt ;-) k _________________________________________________________________________________ mozart-users mailing list [email protected] http://www.mozart-oz.org/mailman/listinfo/mozart-users
