On 3/2/24 20:12, ToddAndMargo via perl6-users wrote:
Hi All,
$ raku -I./ -c CobianWrapper.pl6
Missing block
at /home/CDs/Windows/NtUtil/CobianWrapper.pl6:1000
1000 is the last line in my code. I presume by
"block" they mean something like "]" or "}"
Do I really have to read 1000 lines of
Hi All,
$ raku -I./ -c CobianWrapper.pl6
Missing block
at /home/CDs/Windows/NtUtil/CobianWrapper.pl6:1000
1000 is the last line in my code. I presume by
"block" they mean something like "]" or "}"
Do I really have to read 1000 lines of code to find my screw
up? Anyone have a tip on how to
On 3/2/24 19:14, Clifton Wood wrote:
.sort(*.split(/\d+/, :kv).map({ (try .Numeric) // $_}).List)
Can you take apart the above for me?
Sorry, that was suppose to be "ping: not "pint:
https://gist.github.com/Xliff/286f1359e40d192d724ed9b900354015
On Sat, Mar 2, 2024 at 9:32 PM ToddAndMargo via perl6-users <
perl6-users@perl.org> wrote:
> > On 3/2/24 05:13, Elizabeth Mattijsen wrote:
> >> .sort(*.split(/\d+/, :kv).map({ (try .Numeric) //
> $_}).List)
>
> > Hi Elizabeth,
> >
>
Easy multisort!
my @h = (
{
name => "albert",
age => 40,
size => 2
},
{
},
{
);
#
({age => 40, name => albert, size => 2} {age => 69, name => albert, size =>
3} {age => 22, name => andy, size => 3})
On Sat, Mar 2, 2024 at 9:29 PM ToddAndMargo via perl6-users <
perl6-users@perl.org> wrote:
On 3/2/24 05:13, Elizabeth Mattijsen wrote:
.sort(*.split(/\d+/, :kv).map({ (try .Numeric) // $_}).List)
Hi Elizabeth,
It works perfectly. Thank you!
I have no idea why, I will ask you in another post
Hi Elizabeth,
Would you take apart your sort piece by piece and explain
each part?
On 3/2/24 05:13, Elizabeth Mattijsen wrote:
.sort(*.split(/\d+/, :kv).map({ (try .Numeric) // $_}).List)
Hi Elizabeth,
It works perfectly. Thank you!
I have no idea why, I will ask you in another post
-T
Elizabeth,
I have been looking for that one to sort operating system devices. Exceptional
timing!
Thanks,
Mark Devine
(202) 878-1500
-Original Message-
From: Elizabeth Mattijsen
Sent: Saturday, March 2, 2024 8:14 AM
To: ToddAndMargo via perl6-users
Subject: Re: I need sorting help
$ raku -e '.say for .sort(*.split(/\d+/, :kv).map({ (try
.Numeric) // $_}).List)
afoo2
afoo12
> On 2 Mar 2024, at 07:26, ToddAndMargo via perl6-users
> wrote:
>
> Hi All,
>
> @Sorted_List = @Sorted_List.sort: { .comb(/ \d+ | \D+ /) .map({ .Int // .self
> })};
>
> gives me
>
> Element
10 matches
Mail list logo