# $ ,'0'
1
   # $ ,'01'
1

thanks, did not think of it.


2010/1/25 Raul Miller <[email protected]>

> On Mon, Jan 25, 2010 at 8:40 AM, Matthew Brand <[email protected]>
> wrote:
> >  # $ '1'
> > 0
> >  # $ '12'
> > 1
> >
> > It catches me out every time :-).
> >
> > I always forget to run strings through the filter:
> > x =. ,:^:(0:=#@:$) x
>
> Is something wrong with using
>   ,x
> ?
>
> That should be faster and is a lot easier to type
> (and, in my opinion, is much  easier to
> remember).
>
> If you really need to support higher ranked
> arrays, you could use something like:
>   ,"1 x
>
> FYI,
>
> --
> Raul
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



-- 
John Coleman puts global "warming" into perspective:
http://climategate.tv/?p=719
Professor Lindzen (http://www-eaps.mit.edu/faculty/lindzen.htm) on global
"warming": http://climategate.tv/?p=721
John P. Costella Ph.D., neat colour coded analysis of the ClimateGate
emails: http://assassinationscience.com/climategate/
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to