Dear Luis,
Your MapCartesianProduct is more concise and does less operations, so
its definitely better..
Torsten
On 19.03.2006, at 23:55, Luis Quesada wrote:
Of course, this is a matter of taste. But I think MapCartesianProduct
looks more readable with collect:
fun {MapCartesianProduct Xs Ys Fn}
for X in Xs collect:C do
for Y in Ys do {C {Fn X Y}} end
end
end
--
Torsten Anders
Sonic Arts Research Centre
Queen's University Belfast (UK)
www.torsten-anders.de
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users