If in a program x = y x thru y gives an empty result. You may not want
that
so
to =: thru`] @. ([=])
gives
2 to 0
2 1 0
2 to 2
2
2 to 4
2 3 4
Fraser
----- Original Message -----
From: "Brian Schott" <[EMAIL PROTECTED]>
To: "Programming forum" <[email protected]>
Sent: Tuesday, September 23, 2008 11:18 AM
Subject: RE: [Jprogramming] Integers from x to y
Yes, Raul's solution is great. And it handles 7 thru
3 correctly, also. Very nice.
And handling non-integers as you suggest Ric, also
makes good sense.
(B=)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm