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 this
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:
:
:
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 (<>
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?