On 9/26/18 6:31 PM, ToddAndMargo wrote:
On 9/26/18 6:18 PM, Curt Tilmes wrote:>
> > The methods don't take []. You are calling [] on the thing
that the
> > methods return.
Yes, I know. And it is human readable too. It is one of the
many reasons I adore Perl 6.
Where in
multi method words(Str:D $input: $limit = Inf --> Positional)
does it state that "words" will do that? Not all methods will.
So it need to be stated when they will.
> The part where it says "--> Positional" says the thing that gets
> returned is Positional.
>
> A Positional thing has all sorts of methods and operators you can use,
> including []
>
> Not all methods will, of course. Only those that say "--> Positional"
> return a Positional that acts like that.
>
> Curt
Hi Curt,
Perfect! Thank you!
So all methods that respond with --> Positional will accept []
Awesome!
-T
I do believe the reason I spaced on this was that when I see "-->"
what goes through my head is "this is the value(s) returned".
I had not idea it would reflect backwards and affect the method.
There should be a better way of stating this.