The times are almost indistinguishable:

   arr=.i.50 50 50 50 1
   6!:2 '{."1 arr'
0.0595081
   6!:2 '(($,)~}:@$) arr'
0.0614894
   6!:2 ',/"1 arr'
0.0558045
   
   arr=.i.1e7 1
   6!:2 '{."1 arr'
0.0902136
   6!:2 '(($,)~}:@$) arr'
0.0812902
   6!:2 ',/"1 arr'
0.078061

Marshall

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of bill lam
Sent: Friday, July 22, 2011 1:56 AM
To: [email protected]
Subject: Re: [Jprogramming] easy way to remove a trailing [1] from a shape?

I suspect raze than reshape is more efficient.


Чтв, 21 Июл 2011, Marshall Lochbaum писал(а):
> {."1 should also work.
> 
> Marshall
> 
> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of mijj
> Sent: Thursday, July 21, 2011 8:27 PM
> To: Programming forum
> Subject: Re: [Jprogramming] easy way to remove a trailing [1] from a shape?
> 
> 
> yes it does! (Thanks)
> 
> plus .. it's weird that it works (but obviously ought to work) for a 
> single
> item:
> 
> eg.
> 1    <- $ (1$3)
> Null <- $ ,./"1 (1$3)
> 1 1  <- $ ,."1 (1$3)
> 
> 
> On 2011-07-22 01:10, Brian Schott wrote:
> > Does ,./"1  work?
> > --------------------------------------------------------------------
> > -- For information about J forums see 
> > http://www.jsoftware.com/forums.htm
> >
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> 
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

--
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

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

Reply via email to