f=: i.@(0&,)
g=: {:@$
f 7
$f 7
0 7
g f 7
7
g f 12345
12345
----- Original Message -----
From: Raul Miller <[EMAIL PROTECTED]>
Date: Thursday, August 2, 2007 8:21
Subject: [Jgeneral] covert scalars
To: General forum <[email protected]>
> I was regretting, the other day, that grid's result is not a
> list of
> references to the windows it creates.
>
> It then occurred to me that J can represent scalars invisibly:
>
> ('' $~ 0,#:) 7
> $('' $~ 0,#:) 7
> 0 1 1 1
> [EMAIL PROTECTED] ('' $~ 0,#:) 7
> 7
>
> Not that this has much relevance to grid, but perhaps this
> mild obscurity could be useful in some context?
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm