Nice dominoes!  Now pack them in boxes.

Also:

A=:|:49 2$(,7 7 odo 49){dice
B=:|:49 2$(,7 7#:i.49){dice
A-:B

I am trying to avoid things that are not simple J (which can be quite
complicated and complex)

Rather than oddo I would use #:

Also:

odo
#: i.@(*/)
   

Odo uses  @ , and also uses ( ) at the end of a line which should be
unnecessary.

Linda

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Skip Cave
Sent: Sunday, October 05, 2014 4:10 AM
To: [email protected]
Subject: Re: [Jprogramming] Dominate the Dominoes

    odo=: #: i.@(*/)      NB. Odometer function

   |:49 2$(,7 7 odo 49){dice



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

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

Reply via email to