On Mon, 22 Sep 2008, Geoff Canyon wrote: > Some programming languages have built-in commands that give the integers > from x to y. I thought that would be a nice thing to have in J, so I > wrote this: > > f =: [+i.@(0&>[EMAIL PROTECTED])~ > > Is that a reasonable way to go about it?
This thread is interesting in that imo the explicit solution is much easier to understand and remember than the tacit form. Assuming verb composition is not needed, I rather just use the phrase x + i.>:y-x -- regards, ==================================================== GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
