This channel is intended for people just starting with the Raku Programming Language (raku.org). Logs are available at irclogs.raku.org/raku-beginner/live.html
Set by lizmat on 8 June 2022.
06:27 habere-et-disper joined
habere-et-disper Somehow I thought a list of pairs was a hash and was surprised I needed to cast it. Too much composing going on. :-) I suppose a list is still ordered but a hash isn't. 06:33
06:56 habere-et-disper left
lizmat if you iterate over a hash, it will produce a Seq of Pairs... but its order is undeterminable, except if the number of Pairs in the Hash is 0 or 1 :-) 07:13
10:04 lizmat left 10:14 lizmat joined
ab5tract A 11:35
lizmat B
.oO( is this a test ? :-)
ab5tract Fat fingers, I’m afraid 11:36
disbot4 <librasteve> C 14:11
14:14 librasteve_ joined
disbot4 <comborico> All I know, is that Lists are immutable in Raku. 17:16
<comborico> Do you have a specific number in mind? Say 75? 17:20
<comborico> You've gotta be careful using the Whatever Star at some places: say (*/2)(4); 19:29
<comborico> That won't work if there is a space between parens.
lizmat Lists are indeed immutable in the sense that pop / shift / unshift / push don't work 19:30
but they (sadly from an optimizing point of view) *can* contain mutable containers
disbot4 <comborico> Hmm. Good to know! Thanks! 19:32
lizmat this is needed for things like:
m: my $a = 42; my $b = 666; ($a,$b) = ($b,$a); dd $a, $b
camelia $a = 666
$b = 42
disbot4 <comborico> Ok, thanks!\ 19:34
<comborico> Searching "whatever" or "star" doesn't work in Docs. I thought that was odd. 19:35
19:53 lizmat left 19:54 lizmat joined 20:04 sivoais joined 23:53 librasteve_ left