Documentation Channel for #raku | This channel is logged | Roadmap: github.com/raku/doc/wiki
Set by [Coke] on 23 May 2022.
00:22 arkiuat left 00:29 arkiuat joined 00:53 kjp left 00:54 kjp joined 00:55 kjp left 00:56 kjp joined 02:18 arkiuat left 02:47 arkiuat joined 03:49 librasteve_ left 07:29 arkiuat left 07:35 wayland76 joined 09:25 arkiuat joined 09:29 arkiuat left 09:55 arkiuat joined 10:00 arkiuat left 10:30 arkiuat joined 10:35 arkiuat left 10:57 arkiuat joined 11:02 arkiuat left 11:20 arkiuat joined 11:25 arkiuat left 11:42 arkiuat joined 11:47 arkiuat left 12:15 arkiuat joined 12:25 arkiuat left 12:37 arkiuat joined 12:42 arkiuat left 12:59 arkiuat joined 13:03 arkiuat left 13:32 arkiuat joined 13:36 arkiuat left 13:56 wayland joined 13:57 wayland76 left 14:02 arkiuat joined 14:07 arkiuat left 14:35 arkiuat joined 14:40 arkiuat left 14:55 librasteve_ joined 15:01 arkiuat joined 15:06 arkiuat left 15:15 arkiuat joined 15:36 lizmat left 15:37 lizmat joined 16:31 arkiuat left 16:43 arkiuat joined 16:47 arkiuat left 17:00 arkiuat joined
arkiuat m: my $s = 'old string'; say +($s ~~ tr/dol/wne/) 17:44
m: my $s = 'old string'; ($s ~~ tr/dol/wne/).say
m: my $s = 'old string'; say +($s ~~ tr/dol/wne/) 17:45
arg. sorry about all that. one more
m: my $s = 'old string'; say +($s ~~ tr/dol/wne/) 17:46
wow I keep typing + and a ~ keeps showing up on irc. That's really weird
anyway, the thing that stringifies to 'new string' there is supposed to numify to 3 (the distance between the two strings). It's a StrDistance object
The documentation for ~~ says "see ACCEPTS documentation for the type on the right-hand side of the operator". StrDistance doesn't have a documented ACCEPTS method, and neither does its parent Cool, and the behavior documented for the ACCEPTS method of Any (Cool's parent class) is not what I see going on here. So which ACCEPTS method is getting called by ~~ here? 17:47
wow, sorry, folks, I'm bad at using irssi. That was supposed to go to #raku, not #raku-doc, but perhaps it's better discussed here since my question originates from trying to follow the documentation 17:48
m: my $s = 'old string'; say ~($s ~~ tr/dol/wne)
oh right, no Camelia on #raku-doc 17:49
22:42 arkiuat left 22:55 arkiuat joined 22:59 arkiuat left 23:05 librasteve_ left 23:28 arkiuat joined 23:33 arkiuat left