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

Reply via email to