🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). Log available at irclogs.raku.org/raku/live.html . If you're a beginner, you can also check out the #raku-beginner channel!
Set by lizmat on 6 September 2022.
melezhik. .tell tbrowder: “In a while, Crocodile” 😉 10:31
tellable6 melezhik., I'll pass your message to tbrowder
melezhik. Or maybe more proper for Raku channel “bye, bye, butterfly 🦋 “ )) 10:33
tbrowder .tell melezhik you should audition for Saturday Night Live 13:56
tellable6 tbrowder, I'll pass your message to melezhik.
tbrowder is there any way to use map on an array or list to produce the array inverted so the array.kv becomes %h<v> = k? 23:17
tellable6 2025-03-01T10:31:48Z #raku <melezhik.> tbrowder: “In a while, Crocodile” 😉
SmokeMachine would someone like to proofread and gimme your opinion about this? github.com/FCO/Sourcing-FoodDelive...st-post.md 23:24
tbrowder for the moment i'll just try "is cached" on a sub to handle the situation 23:31
SmokeMachine m: my @a = <a b c d e>; my %b = @a.kv.reverse; dd %b 23:37
camelia {:a(0), :b(1), :c(2), :d(3), :e(4)}
thundergnat m: my @a = 'a'..'g'; my %b = (@a.pairs).invert; say %b; 23:40
camelia {a => 0, b => 1, c => 2, d => 3, e => 4, f => 5, g => 6}
SmokeMachine 23:40 <thundergnat> m: my @a = 'a'..'g'; my %b = @a.antipairs; say %b; 23:41
(Sorry)
SmokeMachine m: my @a = 'a'..'g'; my %b = @a.antipairs; say %b; 23:42
camelia {a => 0, b => 1, c => 2, d => 3, e => 4, f => 5, g => 6}
thundergnat or that... :-)
SmokeMachine :) 23:43
If someone could to take a look at github.com/FCO/Sourcing-FoodDelive...t-post.md, please 23:45