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.
lizmat just blogged again: dev.to/lizmat/a-practical-example-...kuast-18jk 10:01
librasteve m: my $chars = (32^..1024).map(.chr).join; say $chars ~~ /<[\S]>/; 17:43
Raku eval 「!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~^H」
librasteve m: my $chars = (32^..1024).map(.chr).join; say $chars ~~ /<[\w]>/; 17:44
Raku eval 「」
librasteve ^^ I was curious how to (i) print out all the members of a character class (not as easy as you may think) and (ii) just what punctuation chars sit between word (\w) and non-space (\S) 17:57
lizmat librasteve \w is defined in terms of Unicode props 17:58
docs.raku.org/language/regexes#\w_and_\W
all you need to do is run over all codepoints and check for the L property ? 17:59
afk&
librasteve yeah well I should explain that I looked up the max unicode codepoints (2**21 or 1,114,112 if you're interested) but here I limited the range to 1024 ;-) 18:01
m: (32^..1024).map(*.chr).grep(! *.uniprop: 'L').say; 18:04
he he
m: [^1_114_112].map(*.chr).grep(! *.uniprop: 'L').say 18:10
Raku eval (