Run the sentences of the test case in shuffled order.  Does not work.


   NB. given these definitions----------------

   shuffle=: {~ ?~@:#  NB. randomly reorder items

   boxdraw_j_ 1

   B16=: 16bffff
   LSHIFT=: B16 AND 33 b.~
   NOT=: B16 AND 0&(2b11000 b.)
   RSHIFT=: LSHIFT -
   AND=: 2b10001 b.
   OR=: 2b10111 b.

   (datatype;$) A
+-------+----+
|literal|8 14|
+-------+----+

   A  NB. A lists simply constructed j sentences
X=:123
Y=: 456
D=: X AND Y
E=: X OR Y
F=: X LSHIFT 2
G=: Y RSHIFT 2
H=: NOT X
I=: NOT Y

   3 :A''
65079
   D,E,F,G,H,I
72 507 492 114 65412 65079


   NB. try------------------------------------------------

   4!:55;/'DEFGHIXY'   NB. erase definitions
1 1 1 1 1 1 1 1

   3 :(shuffle A)''
|value error: Y
|   G=:    Y RSHIFT 2

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

Reply via email to