> From: Dan Bron > > Ian Gorse wrote: > > I am looking for a way to perform a check to see if all the > > elements are the same or not. > > allSame =: -: 1&|. > allSame&> a;b;c;d > 1 1 0 0 >
Nice! ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
