Thanks. I hadn't used E. before.

How could I generate a list of all rotations of booleans?

I've been trying to somehow use ^: in this sort of fashion:

   (1|."1)^:6 (3+i.5)$"0]1
0 1 1 1 0 0 0
0 1 1 1 1 0 0
0 1 1 1 1 1 0
0 1 1 1 1 1 1
1 1 1 1 1 1 1

Obviously this is not producing the intermediate states - what I'm looking for 
is, for example (taking just the first line 1 1 1 0 0 0 0)
1 1 1 0 0 0 0
1 1 0 0 0 0 1
1 0 0 0 0 1 1
0 0 0 0 1 1 1
0 0 0 1 1 1 0
0 0 1 1 1 0 0
0 1 1 1 0 0 0
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to