Re: join questions

2018-10-02 Thread ToddAndMargo
On 10/1/18 4:35 PM, Larry Wall wrote: On Sun, Sep 30, 2018 at 04:02:15AM -0700, ToddAndMargo wrote: : Hi All, : : https://docs.perl6.org/routine/join#(List)_routine_join : : method join(List:D: $separator --> Str:D) : : $ p6 'say (1, ).join("|");' : 1|a b c : : : It states in the manual that

Re: join questions

2018-10-01 Thread Larry Wall
On Sun, Sep 30, 2018 at 04:02:15AM -0700, ToddAndMargo wrote: : Hi All, : : https://docs.perl6.org/routine/join#(List)_routine_join : : method join(List:D: $separator --> Str:D) : : $ p6 'say (1, ).join("|");' : 1|a b c : : : It states in the manual that this will happen. : : Questions: : :

Re: join questions

2018-09-30 Thread Simon Proctor
On Sun, 30 Sep 2018, 12:05 ToddAndMargo, wrote: > Hi All, > > https://docs.perl6.org/routine/join#(List)_routine_join > > method join(List:D: $separator --> Str:D) > > $ p6 'say (1, ).join("|");' > 1|a b c > > > In this instance you have passed in two objects the Int 1 and a list of > Str's (<>

join questions

2018-09-30 Thread ToddAndMargo
Hi All, https://docs.perl6.org/routine/join#(List)_routine_join method join(List:D: $separator --> Str:D) $ p6 'say (1, ).join("|");' 1|a b c It states in the manual that this will happen. Questions: 1) why? 2) where in the method definition does it state this will happen?