On 4/17/07, bill lam <[EMAIL PROTECTED]> wrote:
Raul Miller wrote:
> wderrok_z_=: 0 0 $ [: 11!:0 ::0:&> (0;wdstates;1(127})';"*'i.a.) ;: ]
>
> (Note: for pre-unicode J, replace 127 with 255).

127{a. for J601 (255{a. for J504) is also used as delimiter, does your parser
handle them or not?

The code, as written, assumes J601.

If you need support for both versions, I'd use something like:
  wddelim=: 127+128*'5'=1{9!:14''
  wderrok_z_=: 0 0 $ [: 11!:0 ::0:&> (0;wdstates;1 wddelim}';"*'i.a.) ;: ]

Note, however, that I have not actually tested this on J504.

 From efficiency point of view, I don't know if I'll buy it.

Decisions based on efficiency can only be valid when supported
by relevant measurements.

--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to