Re: Could this be any more obscure?

2018-09-27 Thread Alessandro Costantini
> Il giorno 26 set 2018, alle ore 08:57, Todd Chester > ha scritto: > > Hi All, > > Over on >https://docs.perl6.org/routine/words > I see > > multi method words(Str:D $input: $limit = Inf --> Positional) $input is the method invocant (hence the “:”) constrained to a defined string

Re: Could this be any more obscure?

2018-09-27 Thread Brad Gilbert
In Perl 6 most normal operators are subroutines: @a[1..3] :« [ ] »( @a,1..3 ) # same as above Since they are just subroutines they often just call something else. # an overly simplified version sub postcircumfix:« [ ] » ( @array, **@indicies ) { gather {

Re: Could this be any more obscure?

2018-09-27 Thread Laurent Rosenfeld via perl6-users
> I am NOT asking it to limit my request to Infinity. Yes you are, implicitly. If you don't pass any parameter for $limit, $limit will take the default value supplied by the signature, i.e. Inf. Le jeu. 27 sept. 2018 à 02:48, ToddAndMargo a écrit : > On 9/26/18 4:33 PM, The Sidhekin wrote: >

Re: Could this be any more obscure?

2018-09-27 Thread JJ Merelo
El jue., 27 sept. 2018 a las 3:51, ToddAndMargo () escribió: > 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.

Re: Could this be any more obscure?

2018-09-27 Thread JJ Merelo
El jue., 27 sept. 2018 a las 3:19, Brandon Allbery () escribió: > Additionally: Perl 5 docs don't run into this because perl 5 has only 3 > types: scalar, list, hash. > > Perl 6 has lots of types, each of which has its own behavior. We use roles > to package up common > _and_ roles _and_

Re: Could this be any more obscure?

2018-09-27 Thread JJ Merelo
El mié., 26 sept. 2018 a las 23:31, Laurent Rosenfeld via perl6-users (< perl6-users@perl.org>) escribió: > You can set a limit to the number of items (words) you want to retrieve: > you will get only the first $limit words. > > If you don't supply any limit, Inf can be thought as the default