Special code for u&.(a.&i.) should prove fruitful. For example:
a=: a.{~x=: 1e5 [EMAIL PROTECTED] 256
b=: a.{~y=: 1e5 [EMAIL PROTECTED] 256
ts 'a 256&|@:+&.(a.&i.) b'
0.00533559 2.10118e6
ts 'x+y'
0.00140465 524864
I should have seen it when I did the special code for p {~ q i. ] ,
compared to which u&.(a.&i.) has the advantage of being usable
for monads or dyads.
----- Original Message -----
From: Roger Hui <[EMAIL PROTECTED]>
Date: Wednesday, October 3, 2007 9:45
Subject: [Jprogramming] extension to m b.
To: Programming forum <[email protected]>
> I propose to extend the bitwise operations m
> b. for m e. 16+i.19
> to work on character (8-bit or 16-bit) arguments. e.g.
>
> 'abc' 23 b. '321'
> srs
> ] x=:'dazlious','chthonic',:'patriots'
> dazlious
> chthonic
> patriots
> 22 b./ x
> whzvonhc
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm