On Sun, Sep 25, 2011 at 3:06 AM, David Ward Lambert
<[email protected]> wrote:
> Please what is the j notation for bitwise not?
>
> Adverb b. is ingenious---I haven't figured out why negative m is useful.
> On last-ditch effort I've reinvented the j notation:
>
>   bitwise_not=: (16 + #. 1 0 0 1)b.  NB.(#.1 1 0 0 1)b.
>
> The definition is non-obvious and should be considered for the
> beginner's dictionary.  There's a good chance I've overlooked
> documentation.

Come on, why'd you need b. for that?

   bitwise_not =: _1&-

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

Reply via email to