On Sat, Aug 15, 2009 at 11:02 AM, Kip Murray<[email protected]> wrote: For what it is worth, we can keep a sequence like 3;1;4 from being a > set by repeating the last element, representing 3;1;4 by 3;1;4;4 -- the > duplication makes it a nonset.
I think this is an unnecessary complication. Note also that this approach requires that the implementation of sequences be changed to support your implementation of sets. In my opinion these implementations should be independent. That said, I believe it's the responsibility of the programmer to pass appropriate arguments to the appropriate verbs. In debugging and development contexts, it's also sometimes appropriate to include assert statements which will complain if inappropriate arguments are being used. (But these can be bulky so I usually get rid of them once I am comfortable with their absence.) FYI, -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
