Also
 
   clean3=: >:@+:@[EMAIL PROTECTED] (-@<[EMAIL PROTECTED]:@|[EMAIL PROTECTED] 
|."0 1 {."0 1) ":
   clean4=: (i.&.-)@# |.!.' '"0 1 >:@+:@[EMAIL PROTECTED] {."0 1 ":
   clean5=: +:@(i.&.-)@# ([EMAIL PROTECTED]:@[ |.!.' ' |.!.' ')"0 1 ":


----- Original Message ----
From: "Miller, Raul D" <[EMAIL PROTECTED]>
To: Programming forum <[email protected]>
Sent: Friday, July 7, 2006 2:47:51 PM
Subject: RE: [Jprogramming] XOR triangle


Dan Bron wrote:
> What are some other, faster, leaner, cooler or more elegant ways
> to transform the output of  tri  into the output of  triangle  ?

   clean=: [: (#"1~ (<: >./\)/@('01' =/ ])) ":@|."1
   clean tri 10

-- 
Raul

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to