xor can be not equal  ~:

or bitwise      2b10110 b.



On 05/28/2017 08:00 AM, [email protected] wrote:
Message: 5
Date: Sat, 27 May 2017 23:51:29 -0400
From: Michael Rice<[email protected]>
To: programming<[email protected]>
Subject: Re: [Jprogramming] Function creation, without creating
        subfunctions
Message-ID:
        <CAGw08vM_5CttMFY45F6zAAto-doycQYkXqRf8uRWC=0ug9x...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

Yes, that worked. New board created, without changing the old board or the
move.

    board =: 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1
    move =: 0 2 5
    make_move =: ((+. *. -.@:*.) +./) (1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 |.!.0~
3 1 $ -)
    board make_move move
0 1 0 1 1 1 1 1 1 1 1 1 1 1 1
    board
1 1 1 1 1 0 1 1 1 1 1 1 1 1 1
    move
0 2 5

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

Reply via email to