»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_log/perl6 | UTF-8 is our friend! 🦋
Set by Zoffix on 25 July 2018.
00:02 Cabanossi left 00:05 aborazmeh joined, aborazmeh left, aborazmeh joined 00:06 rindolf left 00:08 Cabanossi joined 00:10 integral left 00:11 AlexDaniel` left, Mithaldu` left, Mithaldu joined 00:13 AlexDaniel` joined 00:19 integral joined 00:24 pecastro left 00:26 lichtkind left 00:27 netrino left 00:29 w_richard_w joined 00:36 epony joined 00:41 lichtkind joined 00:52 zacts joined 00:55 lichtkind left 01:00 zacts left 01:03 zacts joined 01:04 zachk left 01:08 lichtkind joined
elcaro Any valid reason why Mix doesn't implement .pick ? 01:32
It does roll
01:33 lichtkind left 01:35 aborazmeh left
timotimo maybe because "remove 1 from the value" isn't totally sensible? not sure 01:37
AlexDaniel Mix can have negative and fractional amounts 01:39
so what's the meaning of pick?
elcaro yeah, I supposed that makes sense, can't pick 2.2 times
I just presumed it would pick a weighted random key, but yeah, picking fractional amounts make no sense 01:40
AlexDaniel m: my $m = ("foo" => -5).Mix; say $m; say $m.roll(2)
camelia Mix(foo(-5))
()
AlexDaniel m: my $m = ("foo" => 0.5).Mix; say $m; say $m.roll(2) 01:41
camelia Mix(foo(0.5))
(foo foo)
AlexDaniel m: my $m = ("foo" => 0.1).Mix; say $m; say $m.roll(2)
camelia Mix(foo(0.1))
(foo foo)
01:51 lichtkind joined
vrurg m: sub foo($a) { my $b is default($a); $b = Nil; say $b }; foo("where is it?") 01:57
camelia (Mu)
vrurg This isn't an expected output, is it?
01:59 lichtkind left 02:00 lichtkind joined, zacts left
AlexDaniel vrurg: well, yeah, that shouldn't be allowed 02:05
02:05 aborazmeh joined, aborazmeh left, aborazmeh joined
AlexDaniel vrurg: is default is not run time, so you can't use it for that 02:05
m: sub foo($a) { my $b is default(rand); $b = Nil; say $b }; foo("a"); foo("b") 02:06
camelia 0.2091059658132023
0.2091059658132023
vrurg sub foo(::T $v) { my T $v } – is ok, but sub foo(::T $v) { my $v is default(T); } is not? 02:07
AlexDaniel I guess so, I'm not sure
vrurg It currently dies with a TypeCheck exception if my T $v is default(T) form is used. 02:08
Ok, I thought it's a bug to be fixed. 02:09
02:10 molaf left 02:13 zacts joined 02:15 zacts left, zacts joined
guifa Ugh it looks like I really just need to implement ICU 02:19
02:21 mahafyi left 02:23 molaf joined
Xliff guifa: ?? 02:32
guifa Xliff: userguide.icu-project.org
I got the number classification done, but then I also realized I needed to get a number formatter done (one that’s fully locale aware) 02:33
Xliff Ooh! Want help?
guifa I’m definitely up for it. I’m sitting here right now thinking whether it’s better to do a NativeCall or try to implement it in pure Perl 6 02:34
Xliff No doubt that you are up for it. 02:35
Looking, now.
guifa I really just want to get the numbers finished (even if barely) so that I can release a semi-useful version of Fluent. One of the most wanted modules was an older-style localization framework, and so what I’ve got for Fluent would cover that and then some 02:36
Xliff Well, I don't know what you know, but looking at the source, this is a LOT of work! 02:38
NativeCall or Pure Perl6
guifa Yeah. But it’s definitely something that long term should be done. It’d align with Perl’s strengths too 02:39
Xliff Yep! 02:40
github.com/unicode-org/icu/tree/ma...ource/i18n <-- Easier to NC
03:02 Sgeo left 03:03 Sgeo joined 03:16 zacts left
Xliff .tell jnthn What's the best way to debug requests when using Cro::HTTP::Client? I need to verify certain headers are being sent when performing a POST 03:16
yoleaux Xliff: I'll pass your message to jnthn.
03:20 w_richard_w left 03:21 w_richard_w joined 03:27 epony left 03:28 epony joined 03:35 epony left
guifa Xliff: check out github.com/alabamenhu/Fluent (it’s not production ready, but the playground.p6 file has some fun test stuff) 03:42
03:46 Kaiepi left 04:24 aborazmeh left 04:25 epony joined 05:02 Cabanossi left
Xliff m: say [&&](0, do { 0/0 }); 05:03
camelia 0
Xliff m: 0/0
camelia ( no output )
Xliff m: 0/0.say
camelia WARNINGS for <tmp>:
0
Useless use of "/" in expression "0/0.say" in sink context (line 1)
Xliff m: say 0/0
camelia Attempt to divide by zero when coercing Rational to Str
in block <unit> at <tmp> line 1
Xliff m: say [and](0, do { 0/0 });
camelia 0
Xliff m: say [and](0, die "Bleah"); 05:04
camelia 0
05:05 gregf_ left
Xliff m: say ().IO.e 05:05
camelia Must specify something as a path: did you mean '.' for the current directory?
in block <unit> at <tmp> line 1
Xliff m: my $a = (); say $a.IO.e
camelia Must specify something as a path: did you mean '.' for the current directory?
in block <unit> at <tmp> line 1
Xliff m: my $a = (); say $a.elems; say $a.IO.e 05:06
camelia 0
Must specify something as a path: did you mean '.' for the current directory?
in block <unit> at <tmp> line 1
05:07 Cabanossi joined 06:01 squashable6 left
Geth doc: 5d49909fe1 | (JJ Merelo)++ | doc/Type/DateTime.pod6
Adds comparison ops, refs #2632
06:03
synopsebot Link: doc.perl6.org/type/DateTime
06:04 squashable6 joined 06:14 Spot___ is now known as Spot- 06:15 Spot- is now known as Spot, Spot is now known as Spot--, Spot-- is now known as Spot- 06:16 Spot- is now known as jkinnula 06:17 jkinnula is now known as Spot 06:19 Spot is now known as Spot_ 06:21 sortiz left 06:26 abraxxa joined 06:27 molaf left 06:30 w17t joined, abraxxa left 06:35 eseyman left 06:43 eseyman joined 06:45 abraxxa joined, random_yanek left 06:57 random_yanek joined 06:58 domidumont joined
jmerelo releasable6: status 07:08
releasable6 jmerelo, Next release will happen when it's ready. 2 blockers. 319 out of 338 commits logged
jmerelo, Details: gist.github.com/a478afb65bb6260998...fe91c4e797
AlexDaniel heh, weather-- imgur.com/a/lfcA2bq 07:09
jmerelo AlexDaniel: that's a fine weather for staying indoors. 07:10
07:11 guifa left
AlexDaniel jmerelo: ya, well, let's hope all that is fixed when I have to go out tomorrow… 07:12
07:21 guifa joined 07:23 reach_satori left, reach_satori joined 07:27 drclaw1 joined 07:28 drclaw left 07:29 ravenousmoose_ joined, w_richard_w left 07:31 drclaw1 left 07:41 lichtkind left 07:53 w_richard_w joined 08:04 cwilson left, cwilson joined 08:07 w17t left 08:08 w17t joined, rindolf joined
lizmat clickbaits p6weekly.wordpress.com/2019/03/04/...is-summer/ 08:14
08:19 ufobat joined 08:24 patrickb joined, cpan-p6 left, cpan-p6 joined
cpan-p6 New module released to CPAN! Smack (0.1.1) by 03HANENKAMP 08:24
New module released to CPAN! Test-META (0.0.16) by 03JSTOWE
New module released to CPAN! META6 (0.0.23) by 03JSTOWE
New module released to CPAN! JSON-Class (0.0.12) by 03JSTOWE
08:24 cpan-p6 left
lizmat aw.... tyil ^^^ 08:31
tyil ;~;
I already put in a ratelimiting mechanism 08:32
08:34 vike1 left 08:36 vike1 joined 08:39 netrino joined
hahainternet it's truly amazing freenode can get rid of people who sent 5 lines in 5 seconds 08:39
but not concerted centralised spamming campaigns using identical messages each time 08:40
in 10 years the quality of their administration has not advanced a jot
08:43 lizmat left 08:45 ChoHag_ left, kensanata joined 08:46 ChoHag joined
tyil going by the logs, the bot is currently banned for those 4 lines of output 08:46
tyil shrugs
I'll try again tomorrow I guess
hahainternet: in general I'm not too happy with freenode's administration tbh
but it's where all the free software channels are, so here I am
08:47 dakkar joined 08:48 vike1 left 08:51 vike joined 08:53 vike left 08:57 vike joined 09:00 andrzejku joined
andrzejku Hey 09:01
:)
09:01 drclaw1 joined
tyil hi 09:01
09:01 netrino left
andrzejku have a good news for Perl6 :D 09:02
tyil do tell me more :>
andrzejku my request passed dev.getsol.us/T7609 09:04
now it is in status needs maintainer
09:04 ravenousmoose_ left
andrzejku but I will have time to look there at weekend : ( 09:04
tyil cool 09:05
andrzejku tyil, ja I am happy too
09:05 ravenousmoose_ joined
tadzik andrzejku: awesome :) 09:07
09:08 woolfy left 09:22 cpan-p6 joined 09:23 reach_satori left, reach_satori joined
tyil alright, cpan-p6 should now be ignored by Sigyn 09:26
it seems that Sigyn just bans whenever it sees a number of messages that look alike, and legit bots are to be ignored by it (set by channel ops apparently) 09:27
I wonder if Sigyn has actually done a ban that was warranted in it's lifetime, tho 09:28
jast it seems quite likely, because those kinds of heuristics do detect spam, too :) 09:29
09:29 woolfy joined
tyil except on freenode, where spam is rampant 09:29
jast there's a reason I didn't say "all spam"
09:30 pmurias joined
tyil in the years I've been on Freenode I've seen Sigyn kill plenty of regular users and people trying to build a bot 09:31
but only once or twice I'ev seen it kill someone actually trying to spam
jast most kills I've seen were not related to a message on the channel I saw them on
09:33 [Sno] left, woolfy left
tyil all I know is that from my experience, Sigyn seems to hurt a lot more than it actually helps 09:33
jast I don't need it on my channels anyway, the anti-spam measures we use work well enough 09:34
tyil tbh, +s seems to help a great deal already 09:35
jast unless you're a well-known channel...
09:36 w_richard_w left
tyil freenode doesn't have delayed joins, does it? 09:36
jast I don't think so
09:40 lichtkind joined 09:47 cpan-p6 left, cpan-p6 joined 09:50 lichtkind_ joined, lichtkind left 09:51 pmurias left 10:01 zakharyas joined 10:05 integral left, integral joined
jmerelo andrzejku: great 10:08
10:08 cpan-p6 left, cpan-p6 joined 10:16 scovit joined, pmurias joined 10:27 ravenousmoose_ left, ravenousmoose_ joined 10:33 cpan-p6 left 10:34 cpan-p6 joined 10:53 dogbert2_ left 11:05 domidumont left 11:22 cpan-p6 left 11:23 cpan-p6 joined 11:25 Black_Ribbon left 11:31 mowcat left 11:47 cpan-p6 left 11:48 cpan-p6 joined
discord6 <kawaii> obligatory "where is rakudo star 2019.0(2|3) release?" question for today :) 11:56
12:02 cpan-p6 left 12:03 cpan-p6 joined 12:08 lucasb joined
lucasb look, Raku posts! :D 12:14
"Larry Wall made the decision to use Raku as its official name" haha, made me laugh :) 12:15
12:16 cpan-p6 left 12:17 cpan-p6 joined
tadzik where is that? :) 12:19
lucasb top entry in blogs.perl.org/ :)
12:20 ufobat_ joined 12:21 mowcat joined 12:22 ufobat left
tadzik heh, talk about reducing the confusion... 12:24
12:26 dustinm`_ left 12:27 jmerelo left 12:31 dustinm` joined 12:32 zakharyas left
masak "I hope the discussion of names will decrease and talks about language features will increase." -- well, there's something to agree on. 12:37
maybe someone should start a subcommunity called "people who don't want to talk about names" or something 12:38
the actual name of the subcommunity doesn't matter. really, it doesn't.
El_Che fat change
I wrote a blog why it won't happen :) 12:39
12:39 cpan-p6 left
masak people from both Perl 5 and... not Perl 5, would be welcome. 12:39
12:39 cpan-p6 joined
tadzik finally, a comunity for my Perl 4 fetish 12:39
masak proposed slogan: "what you all just said about names? We Don't Care." 12:40
feel free to call Perl 6 "WC Duck" if you want. and feel free to call that name an alias if you feel that's important. 12:41
to me the important thing has never been the name, but the language the name refers to.
tadzik: Perl 4 seems a fascinating language. weren't we both at a talk about Perl 4 once? 12:42
tadzik masak: I don't think I was :( 12:44
12:44 drclaw1 left
masak someone had dug up Perl 4 and was taking it through the motions. 12:44
fascinating how much was there and yet how different the language felt.
tadzik I recently thought what keeps attracting me to Perl 5 while Perl 6 is a thing, and I think it's the simplicity of its list-iness 12:45
masak I cannot +1 you enough 12:46
tadzik sub arguments are just lists of things. You can alter them and pass them further around. It may be weird at first, but it's just wonderful when you get your head around it
I've been writing Perl 6 on and off for 8 years and often I'm still not sure what *kind* of list I'm dealing with at a given time 12:47
masak tadzik: in my head I have Perl 5 lists as being a kind of "intermediate medium" when things fly between functions, or between arrays/hashes
tadzik exactly!
masak \o/
agree about the confusion in Perl 6 too. worse, I don't really know how to fix that.
tadzik yeah :( 12:48
masak in 007 I've opted for utmost simplicity, to the point of (recently) removing Tuple and its syntax
tadzik it made me wonder if there are other languages build entirely around a different basic data structure and indeed: Lua is that language
I don't recall what they call them, but Hashes are everything it in. Lists/Arrays are just a specialcase of Hashes that have numeric indexes
masak the basic data structure in Lua does not strike me as elegant, though :)
tadzik: "tables"
tadzik that's it, thanks 12:49
masak PHP and awk also consider arrays to be special cases of associative arrays
can't say I'm a fan :)
oh, and JavaScript
tadzik shakes with PTSD
I've been writing a lot of angular the past few weeks
masak I feel like it's one of those cute-ideas-today that comes back and shoots you in the performance later
the storage and indexing modes of arrays vs hashes are *way* different 12:50
tadzik yep
El_Che masak + tadzik == i.ytimg.com/vi/iBSF0Gi7oM0/hqdefault.jpg
tadzik :D:D 12:51
masak .oO( tag yourself: I'm the guy on the right )
12:53 kst left 12:54 jeromelanteri joined
El_Che DrForr: are you from breton heritage? pbs.twimg.com/media/D05Ok5CXgAAco3U.jpg 12:55
12:55 domidumont joined 13:01 cpan-p6 left 13:02 cpan-p6 joined
masak oh, I never realized that "Kovács" meant "Smith". interesting also that it's from the Slavic wordstock, not the Finnic 13:13
El_Che there isn't a source, so grain of salt 13:14
interesting nevertheless
(I speak Spanish and it never occurred to me that the surname "Herrera" was derived from "Herrero" (Smith) :) ) 13:15
13:16 cpan-p6 left 13:17 cpan-p6 joined
tadzik don't feel bad. It took me like 2 years to realize that my boss and another employee who share the last name, look similar, differ by 30-40 years of age and both have been with the company forever are actually father and son 13:17
it seems obvious in retrospect
masak I'm super-bad at recognizing those things as well 13:22
El_Che hehe, great one, tadzik 13:24
13:29 zakharyas joined 13:30 aborazmeh joined, aborazmeh left, aborazmeh joined 13:33 w17t left 13:39 llfourn left 13:41 cpan-p6 left 13:42 cpan-p6 joined 13:46 scimon joined 13:50 jeromelanteri left 14:01 llfourn joined 14:03 patrickb left 14:07 cpan-p6 left, cpan-p6 joined 14:08 ufobat__ joined 14:11 ufobat_ left
guifa El_che: it’s not even just Smith, it’s an iron smith (hierro [iron] + -ero [one that works with prev noun]) :-) 14:17
El_Che indeed :) 14:18
14:22 ufobat_ joined 14:24 ufobat__ left 14:25 aborazmeh left
guifa If a module is ‘use’d multiple times, is it loaded multiple times or can we safely assume that variables are shared? 14:34
14:35 jmerelo joined, aborazmeh joined, aborazmeh left, aborazmeh joined
guifa That is, class A says use ‘X’, and class B says use ‘X’. A modifies an exported variable in X, does B get to see the modified or does it have its own copy? 14:35
14:35 mowcat left 14:38 aborazmeh left 14:44 ExtraCrispy joined, andrzejku left 15:03 cpan-p6 left, cpan-p6 joined 15:15 patrickb joined 15:29 kini left 15:33 atweiden-air joined 15:39 kini joined 15:49 pmurias left 15:50 cpan-p6 left 15:51 cpan-p6 joined
jnthn guifa: Compilation units are loaded once, so it'd be shared. 15:55
15:55 pmurias joined
guifa jnthn++ perfect 15:57
16:02 tyil[m]1 left, tyil[m]1 joined 16:06 molaf joined, telex left 16:07 telex joined 16:08 kent\n left 16:09 kent\n joined
guifa github.com/alabamenhu/UserLanguage 16:14
If anyone could test and see that it gets the right info for their system (or tell me how to get it for their system so I can add it), appreciation given in pluses :-) 16:15
16:15 cpan-p6 left, cpan-p6 joined 16:18 ravenousmoose_ left
Geth ecosystem: alabamenhu++ created pull request #438:
Add UserLanguage module
16:20
16:23 pmurias left 16:25 domidumont left 16:29 cpan-p6 left, cpan-p6 joined 16:37 ufobat_ left
Geth ecosystem: c04a545946 | L'Alabameñu++ (committed using GitHub Web editor) | META.list
Add UserLanguage module
16:40
ecosystem: 399d1c2450 | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | META.list
Merge pull request #438 from alabamenhu/patch-2

Add UserLanguage module Thanks!
guifa jmarelo++ (also, any chance you’ll be up in the Gran Villa next week?) 16:42
SmokeMachine guifa: for me its working: 16:43
www.irccloud.com/pastebin/vASb5f03/
when I get in home Ill try on my Brazilian Portuguese machine... 16:44
guifa: but the `use 'Intl::UserLanguage'` on your README seems odd... 16:45
guifa SmokeMachine++
and oops haha
16:52 cpan-p6 left 16:53 cpan-p6 joined 17:02 sno joined 17:06 cpan-p6 left 17:07 cpan-p6 joined 17:10 patrickb left 17:22 cpan-p6 left, cpan-p6 joined 17:25 scimon left 17:26 abraxxa left 17:28 patrickb joined 17:32 sno left 17:44 cpan-p6 left 17:45 cpan-p6 joined 17:57 ravenousmoose joined 18:06 reach_satori left 18:07 reach_satori joined 18:09 cpan-p6 left 18:10 cpan-p6 joined 18:19 atweiden-air left 18:20 ravenousmoose left 18:21 vrurg_ joined, vrurg left, vrurg_ is now known as vrurg 18:32 sena_kun joined 18:33 cpan-p6 left 18:34 cpan-p6 joined 18:35 TreyHarris joined 18:36 sno joined
discord6 <Rogue> When are we getting a rakudo-star for 6.d? 18:40
18:41 sno left 18:44 zacts joined
AlexDaniel Rogue: hello :) 18:49
so rakudo-star can only happen once we release rakudo, as I understand
all preparations were done, so we're ready for the release 18:50
so once moarvm is released, I'll release rakudo shortly, and that should happen really soon I hope 18:51
but I don't know how much time the new rakudo-star team will take 18:52
18:55 zachk joined 18:56 zachk left, zachk joined 18:57 cpan-p6 left, cpan-p6 joined 19:00 dakkar left
DrForr llfourn: Not that I'm aware, the furthest ancestor I'm aware of was from Sussex, England in the 1600s. 19:06
19:09 sno joined 19:12 cpan-p6 left, cpan-p6 joined 19:14 sno left 19:16 ravenousmoose joined 19:20 sortiz joined 19:25 netrino joined 19:27 cpan-p6 left, cpan-p6 joined 19:41 zacts left 19:42 cpan-p6 left, cpan-p6 joined 19:46 zakharyas left 19:48 Black_Ribbon joined 20:03 mowcat joined 20:04 cpan-p6 left 20:05 cpan-p6 joined 20:07 abraxxa joined 20:14 sno joined
kybr i find myself refreshing commaide.com/ frequently. i want it. 20:19
20:20 sno left 20:21 pecastro joined
Seance[m] What tools do you guys use to write perl6 currently? I've really only used Atom 20:23
tadzik vim :) 20:24
kybr vim, vscode, atom..
AlexDaniel emacs 20:25
AlexDaniel`: hello 20:26
20:26 cpan-p6 left, AlexDaniel-old[m joined
AlexDaniel ahh… ok… 20:26
20:27 AlexDaniel-old[m left, cpan-p6 joined
kybr i want to see code completion and syntax hilighting working on perl6. that sounds like quite a feat to me. 20:31
20:33 Kaiepi joined
Seance[m] Yeah, I use vim bindings + the recommended perl6 atom packages on perl6.org/whatever. I'm not too crazy about Atom though, so was curious about people's setups 20:33
AlexDaniel so what's the issue with syntax highlighting? I though most editors do it relatively well?
tadzik perl is quite hard to parse though 20:34
editors usually do matching with regexes, which doesn't work perfectly with complex languages
Kaiepi yeah, just look at the grammar perl 6 uses 20:35
speaking of which what does <O(%foo)> do? 20:36
in grammars
i see it a lot in rakudo but but i can't find any docs onit 20:38
guifa Is there a way to programmatically determine the files in %*RESOURCES? I tried .keys but that failed, even though it gives key-like access. 20:42
20:44 cpan-p6 left
guifa Kaiepi: maybe it’s a NQP thing? 20:46
20:47 ravenousmoose left 20:48 abraxxa left, sno joined
sena_kun judging by the syntax, it may be just a call to the method `O` with %foo arg. 20:50
20:51 jmerelo left 20:53 sno left 20:56 Kaiepi left 20:57 Kaiepi joined 21:00 ravenousmoose joined, cpan-p6 joined 21:05 andrzejku joined
moritz right, it's the operator precedence parser implemented as a method 21:10
21:10 ExtraCrispy left 21:12 ExtraCrispy joined 21:13 lichtkind_ left 21:20 sno joined
moritz in nqp, src/HLL/Actions.nqp is method O 21:22
21:25 cpan-p6 left, cpan-p6 joined 21:26 sno left 21:28 drclaw1 joined, lucasb left 21:39 cpan-p6 left, rindolf left, cpan-p6 joined 21:40 rindolf joined
jdv79 tadzik: i agree i think on the list point. slip/flat/list/array/one arg rule - its a hurdle sometimes. 21:44
21:53 sno joined 21:56 sena_kun left 21:57 sno left 21:58 cpan-p6 left 22:01 cpan-p6 joined 22:03 Cabanossi left 22:04 Cabanossi joined 22:12 sortiz left 22:18 mowcat left 22:26 kst joined, cpan-p6 left, cpan-p6 joined 22:30 ravenousmoose left 22:32 dominix joined
dominix hi everyone 22:32
m: for "puan".comb.permutations {$_.join.say} 22:33
camelia puan
puna
paun
panu
pnua
pnau
upan
upna
uapn
uanp
unpa
unap
apun
apnu
aupn
aunp
anpu
anup
npua
npau
nupa
nuap
napu
naup
dominix I would like to do the same but without the for loop
I think of 22:34
m: "puan".comb.permutations.map {.join.say}
camelia 5===SORRY!5=== Error while compiling <tmp>
Unexpected block in infix position (missing statement control word before the expression?)
at <tmp>:1
------> 3"puan".comb.permutations.map7⏏5 {.join.say}
expecting any of:
inf…
dominix but it doesn't works
AlexDaniel m: say "puan".comb.permutations.map(*.join) 22:35
camelia (puan puna paun panu pnua pnau upan upna uapn uanp unpa unap apun apnu aupn aunp anpu anup npua npau nupa nuap napu naup)
AlexDaniel m: say "puan".comb.permutations.map(*.join).join: "\n"
camelia puan
puna
paun
panu
pnua
pnau
upan
upna
uapn
uanp
unpa
unap
apun
apnu
aupn
aunp
anpu
anup
npua
npau
nupa
nuap
napu
naup
dominix m: "puan".comb.permutations.map {*.join.say}
camelia 5===SORRY!5=== Error while compiling <tmp>
Unexpected block in infix position (missing statement control word before the expression?)
at <tmp>:1
------> 3"puan".comb.permutations.map7⏏5 {*.join.say}
expecting any of:
in…
dominix m: "puan".comb.permutations.map {*.join}.say
camelia 5===SORRY!5=== Error while compiling <tmp>
Unexpected block in infix position (missing statement control word before the expression?)
at <tmp>:1
------> 3"puan".comb.permutations.map7⏏5 {*.join}.say
expecting any of:
in…
AlexDaniel you need parens or :
m: "puan".comb.permutations.map({*.join}).say 22:36
camelia 5===SORRY!5=== Error while compiling <tmp>
Malformed double closure; WhateverCode is already a closure without curlies, so either remove the curlies or use valid parameter syntax instead of *
at <tmp>:1
------> 3"puan".comb.permutations.map…
dominix I didn't got this : thing
AlexDaniel m: "puan".comb.permutations.map(*.join).say
camelia (puan puna paun panu pnua pnau upan upna uapn uanp unpa unap apun apnu aupn aunp anpu anup npua npau nupa nuap napu naup)
AlexDaniel or
m: "puan".comb.permutations.map({.join}).say
camelia (puan puna paun panu pnua pnau upan upna uapn uanp unpa unap apun apnu aupn aunp anpu anup npua npau nupa nuap napu naup)
dominix m: "puan".comb.permutations.map({*.join}).say
camelia 5===SORRY!5=== Error while compiling <tmp>
Malformed double closure; WhateverCode is already a closure without curlies, so either remove the curlies or use valid parameter syntax instead of *
at <tmp>:1
------> 3"puan".comb.permutations.map…
AlexDaniel {.join} or *.join, not both at the same time :)
dominix m: "puan".comb.permutations.map({.join}).say
camelia (puan puna paun panu pnua pnau upan upna uapn uanp unpa unap apun apnu aupn aunp anpu anup npua npau nupa nuap napu naup)
dominix m: "puan".comb.permutations.map(*.join).say 22:37
camelia (puan puna paun panu pnua pnau upan upna uapn uanp unpa unap apun apnu aupn aunp anpu anup npua npau nupa nuap napu naup)
dominix ok, thanks
is there details in the perl6 docuentation on how this * vs {} works 22:38
I am formating my brain but there is bad sector
sectors 22:39
humm this is not exacly the same 22:41
m: for "puan".comb.permutations {$_.join.say}
camelia puan
puna
paun
panu
pnua
pnau
upan
upna
uapn
uanp
unpa
unap
apun
apnu
aupn
aunp
anpu
anup
npua
npau
nupa
nuap
napu
naup
dominix here, there is a newline after each name
AlexDaniel m: "puan".comb.permutations.map(*.join).join("\n").say
camelia puan
puna
paun
panu
pnua
pnau
upan
upna
uapn
uanp
unpa
unap
apun
apnu
aupn
aunp
anpu
anup
npua
npau
nupa
nuap
napu
naup
dominix m: "puan".comb.permutations.map(*.join).say
camelia (puan puna paun panu pnua pnau upan upna uapn uanp unpa unap apun apnu aupn aunp anpu anup npua npau nupa nuap napu naup)
AlexDaniel yeah, you'll have to .join again with a newline 22:42
m: "puan".comb.permutations.map(*.join ~ "\n").join.say
camelia puan
puna
paun
panu
pnua
pnau
upan
upna
uapn
uanp
unpa
unap
apun
apnu
aupn
aunp
anpu
anup
npua
npau
nupa
nuap
napu
naup
AlexDaniel also a possibility, depending on what you need
dominix m: "puan".comb.permutations.map(*.join ~ "\n").say 22:43
camelia (puan
puna
paun
panu
pnua
pnau
upan
upna
uapn
uanp
unpa
unap
apun
apnu
aupn
aunp
anpu
anup
npua
npau
nupa
nuap
napu
naup
)
dominix m: "puan".comb.permutations.map(*.join ~ "\n").join.say
camelia puan
puna
paun
panu
pnua
pnau
upan
upna
uapn
uanp
unpa
unap
apun
apnu
aupn
aunp
anpu
anup
npua
npau
nupa
nuap
napu
naup
dominix the effect of the second join is visible but still obscure to me 22:44
AlexDaniel see this: 22:45
m: "puan".comb.permutations.map(*.join).join("\n").say
camelia puan
puna
paun
panu
pnua
pnau
upan
upna
uapn
uanp
unpa
unap
apun
apnu
aupn
aunp
anpu
anup
npua
npau
nupa
nuap
napu
naup
AlexDaniel you're getting a list of lists from .permutations, so yes, you'll have to join the inner lists first and then the outer ones
dominix ok, that clear. that AlexDaniel 22:49
that is very kind of you 22:50
22:50 cpan-p6 left 22:51 cpan-p6 joined
dominix I appreciate this help cause perl6 has some weird concept (to me) it might be because of my primitive background in perl5 22:52
22:52 woolfy joined
dominix but I'll keep formatting 22:52
AlexDaniel :) 22:54
22:58 andrzejku left
Xliff \o 23:03
yoleaux 15:42Z <jnthn> Xliff: CRO_TRACE=1 in the environment
23:24 squashable6 left 23:27 cpan-p6 left 23:28 cpan-p6 joined, squashable6 joined, ChanServ sets mode: +v squashable6 23:42 cpan-p6 left 23:43 cpan-p6 joined