Thank you to all for answering my question. All of
the answers were helpful.  I like the simplicity of this
answer.

   2 (-~ 12&|@, -) 9
7 5

        And I like the generality of these two answers
below, when the days within the months are a little
different. I am still working on how to choose between the
two possibilities. The second alternative is correct in this
case.

   (-~,-)/&.(12 28&#.) 2 5,:9 6   NB. 28 days in Feb
7  1
4 27
   (-~,-)/&.(12 30&#.) 2 5,:9 6   NB. 30 days in Sep
7  1
4 29

(B=)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to