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.
00:44 Manifest0 left 01:53 jgaz left 02:20 tea3po left, tea3po joined 02:36 tea3po left 02:37 tea3po joined 07:44 Manifest0 joined 09:48 lizmat left 09:52 lizmat joined
lizmat just blogged again: dev.to/lizmat/a-practical-example-...kuast-18jk 10:01
14:19 tea3po left, tea3po joined 14:22 teatwo joined 14:23 guifa_ joined 14:25 tea3po left, guifa left 15:35 teatwo left, teatwo joined 15:52 teatwo left, teatwo joined 15:53 teatwo left, teatwo joined
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 (
23:42 Manifest0 left