Hi All,

https://docs.perl6.org/routine/join#(List)_routine_join

method join(List:D: $separator --> Str:D)

$ p6 'say (1, <a b c>).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?

   3) why does this work?
         $ p6 'join( "|", <1 2 3>).say;'
         1|2|3

Many thanks,
-T

Reply via email to