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.
Sussysham good morning everyone 04:36
AirwaveDev hi 04:46
deadmarshal_ How can I check if all characters of a string are a subset of a set? 0x0.st/Hiv1.txt 06:39
Nemokosch What does @arr hold? 09:34
CIAvash 'str'.comb ⊂ $set 09:41
deadmarshal_ Nemokosch: strings 10:31
0x0.st/Hiwc.txt
CIAvash: Did I do something wrong here? 0x0.st/Hiwc.txt 10:32
Nemokosch > @arr = @arr.lc; this itself is problematic 11:35
lizmat @arr = @arr>>.lc 11:37
Nemokosch m: my @arr = <alpha beta gamma>; dd @arr; @arr = @arr.lc; dd @arr; 11:38
Raku eval Array @arr = ["alpha", "beta", "gamma"] Array @arr = ["alpha beta gamma"]
Nemokosch I'd allow equal sets as well, knowing the task, not only strict subsets 11:39
deadmarshal_ lizmat: thanks that was the problem 11:55
Nemokosch: ok I'll make it so
el gatito (** advocate) m:perl my $str = "Nice to meet you"; say $str.uniq; 12:30
Raku eval Exit code: 1 No such method 'uniq' for invocant of type 'Str'. Did you mean 'unique'? in block <unit> at main.raku line 2
el gatito (** advocate) m:perl my $str = "Nice to meet you"; say $str.unique; 12:31
Raku eval (Nice to meet you)
el gatito (** advocate) 🤔
Nemokosch this is a method for iterables I guess
el gatito (** advocate) m:perl my $str = "Nice to meet you"; say $str.comb.unique; 12:33
Raku eval (N i c e t o m y u)
el gatito (** advocate) m:perl my $str = "Nice to meet you"; say $str.lc.comb.unique.sort.join; 12:34
Raku eval ceimnotuy
el gatito (** advocate) m:perl my $str = "Nice to meet you"; say $str.lc.comb.unique.sort.join.raku; 12:35
Raku eval " ceimnotuy"
el gatito (** advocate) where did the space go
Nemokosch it's right there
el gatito (** advocate) i mean here
Nemokosch cdn.discordapp.com/attachments/768.../image.png
yes, there
bruh
el gatito (** advocate) the mobile client doesn't show the space smh 12:37
cdn.discordapp.com/attachments/768...iscord.jpg
weird