Ric, This comes very close to the ideal I was seeking. Great innovation!
On Mon, Jul 13, 2015 at 4:35 PM, Tikkanz <[email protected]> wrote: > The original description talks about alternatively subtracting 2, then 1, > it doesn't mention detecting odd or even numbers (although the example code > does). So I'm not sure whether the following is acceptable, but it is an > example that uses power and a bit of array thinking. > (] , 2 3 -~ {:)^:(10) 100 > > 100 98 97 95 94 92 91 89 88 86 85 83 82 80 79 77 76 74 73 71 70 > > > -- (B=) ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
