Re: I need help understanding ".contains" method construction

2020-12-27 Thread ToddAndMargo via perl6-users
On 12/19/20 11:04 PM, ToddAndMargo via perl6-users wrote: Hi All, https://github.com/rakudo/rakudo/blob/master/src/core.c/Str.pm6 337:multi method contains(Str:D: Str:D $needle --> Bool:D) { 338:nqp::hllbool(nqp::isne_i(nqp::index($!value,$needle,0),-1)) 339:} I "presume" in "abcd".con

Re: I need help understanding ".contains" method construction

2020-12-27 Thread ToddAndMargo via perl6-users
On 12/26/20 2:50 PM, Ralph Mellor wrote: Is this .self with a better name? No. I know you've been progressing in your understanding of OO in general, and Raku's in particular, since you wrote this email. So I won't explain it for now, but rather just try to confirm you now know what that bit of