Documentation for routine join

Documentation for routine join, assembled from the following types:

class Any

From Any

(Any) method join

Defined As:

    method join(--> TODO)

TODO

class List

From List

(List) routine join

Defined as:

sub    join($separator*@list --> Str:D)
method join(List:D: $separator --> Str:D)

Treats the elements of the list as strings, interleaves them with $separator and concatenates everything into a single string.

Example:

join '', <a b c>;             # RESULT: «a, b, c» 

Note that the method form does not flatten sublists:

say (1, <a b c>).join('|');     # OUTPUT: «1|a b c␤» 

class IO::Spec

From IO::Spec

(IO::Spec) method join

method join(IO::Spec:D: $$dirname$file)

class IO::Spec::Unix

From IO::Spec::Unix

(IO::Spec::Unix) method join

method join(IO::Spec:D: $$dirname$file)

class IO::Spec::Cygwin

From IO::Spec::Cygwin

(IO::Spec::Cygwin) method join

method join(IO::Spec:D: $$dirname$file)

class IO::Spec::QNX

From IO::Spec::QNX

(IO::Spec::QNX) method join

method join(IO::Spec:D: $$dirname$file)

class IO::Spec::Win32

From IO::Spec::Win32

(IO::Spec::Win32) method join

method join(IO::Spec:D: $$dirname$file)

class Thread

From Thread

(Thread) method join

method join(Thread:D)

Waits for the thread to finish.