f=: i.@(0&,)@(a.&i.)@(3 : '5!:5 <''y''')
g=: ".@({&a.)@([EMAIL PROTECTED])
x=: 3 4$ ;:'any noun onomatopoeia eleemosynary synecdoche'
f x
$f x
0 51 32 52 36 60 59 46 95 49 32 39 32 97 110 121 32 110 111 117 110 32 111 110
111 109 97 116 111 112 111 101 105 97 32 101 108 101 101 109 111 115 121 110 97
114 121 32 115 121 110 101 99 100 111 99 104 101 32 97 110 121 32 110 111 117
110 32 111 110 111 ...
g f x
+------------+----------+------------+------------+
|any |noun |onomatopoeia|eleemosynary|
+------------+----------+------------+------------+
|synecdoche |any |noun |onomatopoeia|
+------------+----------+------------+------------+
|eleemosynary|synecdoche|any |noun |
+------------+----------+------------+------------+
x -: g f x
1
----- Original Message -----
From: Roger Hui <[EMAIL PROTECTED]>
Date: Thursday, August 2, 2007 8:27
Subject: Re: [Jgeneral] covert scalars
To: General forum <[email protected]>
> 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