You can shave a character or so off that last one (using @ instead of "1):
~.".~.@>,{4#<'0126'
0 1 2 6 12 16 21 26 61 62 126 162 216 261 612 621 10 102 106 1026 1062
120 160 1206 1260 1602 1620 20 201 206 2016 2061 210 2106 2160 260
2601 2610 60 601 602 6012 6021 610 6102 6120 620 6201 6210
(And, yes, I hadn't read the thread to notice the omitted requirement.)
(Also, thinking about this thread: the A. approach winds up being far
more verbose because implied leading zeros don't matter (could
repeat), and numeric approaches tend to need 10#. instead of ". among
other things which make them verbose.)
Thanks,
--
Raul
On Mon, Oct 21, 2019 at 3:11 PM Roger Hui <[email protected]> wrote:
>
> ~. 10&#.@~.&> , { 4#<0 1 2 6
> ~. ". ~."1 > , {4#<'0126'
>
>
>
> On Mon, Oct 21, 2019 at 11:46 AM Skip Cave <[email protected]> wrote:
>
> > Wow! I hadn't really realized the power of catalogue '{'. This was a great
> > learning experience. Thanks to everyone for the posts.
> >
> > ...
> >
> > Is there any way to get rid of the extra 'eaches' in the function? Or is
> > that the route I must take to use integers instead of characters?
> >
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm