Re: A nice touch

2021-10-30 Thread Ralph Mellor
On Sat, Oct 30, 2021 at 8:38 PM Sean McAfee wrote: > > It worked! But I couldn't quite see how. > > Anyway, pretty cool! I agree it's cool, at least in a golfing sense. But is your explanation right? The *range* operator (`..`), if the rhs is less than the left, yields an empty list rather

Re: ftp client yet?

2021-10-30 Thread Ralph Mellor
Damn but I'm a sucker for punishment. :) On Sun, Oct 31, 2021 at 12:14 AM ToddAndMargo via perl6-users wrote: > > I think you misunderstand. Fwiw I think you misunderstand. If the penny doesn't begin to drop with this email I think my head will explode. Or maybe my tail. > The code I want to

Re: ftp client yet?

2021-10-30 Thread Ralph Mellor
On Sat, Oct 30, 2021 at 5:03 AM ToddAndMargo via perl6-users wrote: > > I was trying to get the whole thing in Raku. Why are you rejecting the "whole Raku" solutions that have been suggested to you in this thread? Your original questions were: * ftp client yet? * Do we have a working ftp

Re: ftp client yet?

2021-10-30 Thread ToddAndMargo via perl6-users
On 10/30/21 10:52, chohag via perl6-users wrote: ToddAndMargo via perl6-users writes: On 10/30/21 02:23, chohag via perl6-users wrote: Which part of the machinery around 'use' and ':from' is not Raku? That is Raku. The code it calls is not. I am trying to convert the code it calls to Raku.

A nice touch

2021-10-30 Thread Sean McAfee
Recently I was golfing the "hyperfactorial," defined for a number 푛 as 푛**푛 × (푛-1)**(푛-1) × (푛-2)**(푛-2) × ... × 1. I created a quite concise Raku function: { [*] [\*] $_...1 } The only problem was that this function returns zero for a zero input, whereas the hyperfactorial of 0 is

Re: ftp client yet?

2021-10-30 Thread chohag via perl6-users
ToddAndMargo via perl6-users writes: > On 10/30/21 02:23, chohag via perl6-users wrote: > > Which part of the machinery around 'use' and ':from' is not Raku? > > That is Raku. > > The code it calls is not. I am trying to convert the > code it calls to Raku. Why when your computer is already

Re: ftp client yet?

2021-10-30 Thread ToddAndMargo via perl6-users
On 10/30/21 02:23, chohag via perl6-users wrote: ToddAndMargo via perl6-users writes: On 10/29/21 18:42, Ralph Mellor wrote: Hi Raiph, I was trying to get the whole thing in Raku. the "from perl 5" is cool stuff for sure, but I would still be maintaining 90% of the code in perl 5. So it is

Re: ftp client yet?

2021-10-30 Thread chohag via perl6-users
ToddAndMargo via perl6-users writes: > On 10/29/21 18:42, Ralph Mellor wrote: > > Hi Raiph, > > I was trying to get the whole thing in Raku. > the "from perl 5" is cool stuff for sure, but > I would still be maintaining 90% of the code in > perl 5. So it is better just to stay in p5. Which part