On Tue, 28 Jul 2009, Dan Bron wrote: > Kip Murray wrote: > > E =: 0$<1 > > 3!:0 E NB. E is boxed: > > 32 > > > > Raul responded: > > L.E > > 0 > > To be explicit, Raul's suggesting you change your test for "is boxed". A > common test for "is boxed" in J is (0<L.) . So you could rewrite your >
I think both tests are useful depending on context. From DOJ If y is open or empty, L. y is 0; if it is boxed and non-empty, the level is one plus the maximum of the levels of the opened elements. So that L. tests for both empty and box. If it is known or assumed to be non-empty, then using L. will require less typing. -- regards, ==================================================== GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
