Here's a couple of other ways, although they're not all that pretty either.
I like the second one better.


  ".'xxx=:',;0{+`- NB. Method 0

  4!:0<'xxx'
3


  xxx=.0(1 : (;0{+`-)) NB. Method 1
  4!:0<'xxx'
3


On 2/19/07, Henry Rich <[EMAIL PROTECTED]> wrote:

  '`xxx' =: +`''
  4!:0 <'xxx'
0

I wanted a verb.  It seems pretty clear that I must want to use
atomic-rep assignment, since I put ` as the first character.  But
when there is only one name, it is left as a boxed noun.

Ye Dic could be interpreted either way, but isn't it clear that
it would be better for this to assign a verb?

[what I was doing was

'`verbname' =: (complex selector expression) { v0`v1`v2...

and my ugly workaround is

'`verbname verbname' =: (2 # selector expression) ...

]

Henry Rich

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