🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). This channel is logged for the purpose of keeping a history about its development | evalbot usage: 'm: say 3;' or /msg camelia m: ... | Log inspection is getting closer to beta. If you're a beginner, you can also check out the #raku-beginner channel!
Set by lizmat on 25 August 2021.
moon-child m: say 'x' ~~ <[.]> 07:47
camelia False
moon-child m: say '.' ~~ <[.]>
camelia False
moon-child m: say 'x' ~~ /<[.]>/
camelia Nil
moon-child m: say '.' ~~ /<[.]>/ 07:47
camelia 「.」
gfldex lolibloggedalittle: gfldex.wordpress.com/2022/03/07/that-meant-war/ 10:39
lizmat s/build up independend/build up an independent/ 10:41
s/solders/soldiers 10:42
gfldex Thanks for denitting. 10:44
Well, without ppl they wont have tin and thus no solder. So my error was correct. 10:45
lizmat true... :-)
Nemokosch Fun fact: inflation is running crazy high here and as I heard in Poland as well 10:47
gfldex In war the damages are never confined to the land of the aggressor. 10:49
Nemokosch Well, thanks for nothing 10:52
lizmat and yet another Rakudo Weekly News hits the Net: rakudoweekly.blog/2022/03/07/2022-...-promoted/ 14:54
guifa_ lizmat++ 15:05
suman m: my @test1 = [6,6,4,6,8,6,8,4];my @test2 = [160.0,160.0,108.0,258.0,360.0,225.0];say @test2 Z @test2; 15:53
camelia ((160 160) (160 160) (108 108) (258 258) (360 360) (225 225))
tellable6 2022-02-27T08:31:53Z #raku <nine> suman: docs.raku.org/syntax/Coercion%20type
2022-02-27T08:32:00Z #raku <CIAvash> suman: type of $xx values of type `Cool` and `Num` are accepted and values of type `Cool` are coerced to target type `Num` docs.raku.org/syntax/Coercion%20type
suman Is there something reverse of Z operator to get the arrays back? 15:53
m: my @test1 = [6,6,4,6,8,6,8,4];my @test2 = [160.0,160.0,108.0,258.0,360.0,225.0];say @test2 Z @test2; 15:54
camelia ((160 160) (160 160) (108 108) (258 258) (360 360) (225 225))
CIAvash if you meant to write `@test1 Z @test2`, you can run map on the result of `Z`, `(@test1 Z @test2).map: *.head` `(@test1 Z @test2).map: *.tail`. But they have to be the same size if you want everything back 16:13
Nemokosch anything that could give them back at once? 16:16
probably categorize or something like that, forgot it
suman m: my @test1 = [6,6,4,6,8,6]; my @test2 = [160.0,160.0,108.0,258.0,360.0,225.0]; say @test1 Z @test2; 16:21
camelia ((6 160) (6 160) (4 108) (6 258) (8 360) (6 225))
suman It gets what I want. But if I combine my @fathertest = (@test1, @test2);
how to run Z operator within the arrays of `@fathertest` 16:22
sometimes it might contain more arrays i.e more than 2 16:23
gfldex zip(|@fathertest)
suman gfldex it does not give me desired output. I was expecting ((6 160) (6 160) (4 108) (6 258) (8 360) (6 225)) 16:25
m: my @test1 = [6,6,4,6,8,6]; my @test2 = [160.0,160.0,108.0,258.0,360.0,225.0]; say zip(|@fathertest)
camelia ===SORRY!=== Error while compiling <tmp>
Variable '@fathertest' is not declared
at <tmp>:1
------> 360.0,108.0,258.0,360.0,225.0]; say zip(|⏏@fathertest)
suman m: my @test1 = [6,6,4,6,8,6]; my @test2 = [160.0,160.0,108.0,258.0,360.0,225.0]; my @fathertest = (@test1, @test2);say zip(|@fathertest) 16:26
camelia (([6 6 4 6 8 6] [160 160 108 258 360 225]))
gfldex dropping the | should work
m: my @test1 = [6,6,4,6,8,6]; my @test2 = [160.0,160.0,108.0,258.0,360.0,225.0]; my @fathertest = (@test1, @test2);say zip(@fathertest) 16:27
camelia (([6 6 4 6 8 6] [160 160 108 258 360 225]))
Nemokosch it indeed gives the same bad result
😬
CIAvash m: my @test1 = [6,6,4,6,8,6]; my @test2 = [160.0,160.0,108.0,258.0,360.0,225.0]; my @test3 = @test1, @test2; say [Z] @test3;
camelia ((6 160) (6 160) (4 108) (6 258) (8 360) (6 225))
Nemokosch you were faster ^^ 16:28
it would be good to know how zip works, though
suman CIAvash Perfect (y)
CIAvash m: my @test1 = [6,6,4,6,8,6]; my @test2 = [160.0,160.0,108.0,258.0,360.0,225.0]; say (@test1 Z @test2).flat.categorize: { $++ %% 2 ?? 'first' !! 'second' } # categorize version for previous question 16:29
camelia {first => [6 6 4 6 8 6], second => [160 160 108 258 360 225]}
gfldex &zip is just an alias to &infix:<Z> 16:30
Nemokosch oh yeah 😛
gfldex and that in turn just calles Rakudo::Iterator.ZipIterables 16:31
without a capture ...
m: my @test1 = [6,6,4,6,8,6]; my @test2 = [160.0,160.0,108.0,258.0,360.0,225.0]; my @fathertest := @test1, @test2; say zip(@fathertest) 16:42
camelia ((6 160) (6 160) (4 108) (6 258) (8 360) (6 225))
suman Is it possible to redefine the parameter of a function inside the function block? 17:12
andrewshitov.com/2019/10/15/110-is...w-in-raku/ 17:14
Isn't it possible to provode is rw trait for optional parameter of a function? 17:15
Anton Antonov I asked this question few weeks ago -- Is there are a way to disable "Live Preview" in Comma / Commaide ? 17:22
I asked this question few weeks ago -- Is there a way to disable "Live Preview" in Comma / Commaide ? 17:38
Nemokosch suman is asking some very good questions... 17:41
donpdonp|z_ I'm freshening up some old raku code and there is a call to 'sub chain_params_by_header(Buf $header) {...' which used to work but now throws 'expected Buf but got Buf (Buf.new(249,190,180,...)' and I'm not sure what the error is saying. 18:22
SmokeMachine bisectable6: say [:bla{ .id }] 18:32
bisectable6 SmokeMachine, Will bisect the whole range automagically because no endpoints were provided, hang tight
SmokeMachine, Output on all releases: gist.github.com/c7838253ca083f5d09...74eb382db5 18:33
SmokeMachine, More than 4 changes to bisect, please try a narrower range like old=2022.02 new=HEAD
SmokeMachine bisectable6: my %column = :references, :model-name; say so(%column{<model-name model-type>.none}:exists) == so(%column{<model-name model-type>.all}:!exists) # is that expected (that's breaking Red) 19:04
bisectable6 SmokeMachine, Will bisect the whole range automagically because no endpoints were provided, hang tight
SmokeMachine, Output on all releases: gist.github.com/435c93b83d1fb7d88b...a1ac678804 19:05
SmokeMachine, Bisecting by output (old=2022.02 new=0831a3b) because on both starting points the exit code is 0
SmokeMachine, bisect log: gist.github.com/5f9ed9ef5ed7bac881...f5337b86a0
SmokeMachine, (2022-02-08) github.com/rakudo/rakudo/commit/c5...8101fe9765
SmokeMachine, Output on all releases and bisected commits: gist.github.com/9157675983bd6e0e50...2e1c28bdf9
nine donpdonp|z_: is it by any chance possible that you have a class Buf or role Buf somewhere in your code? 20:11
[Coke] anyone thought about SignalR on Raku? 20:58
melezhik . 22:49