join multimethod

Methods

join(arr:Arr, s:Str)
Join strings using s as glue

Parameters

arrArr of Str
join(al:ArrLike, s:Str) Source: stdlib.ngs:1527
Join items to a single string using given separator s

Returns

Str
join(a:Arr, sep:Arr) Source: stdlib.ngs:2837
EXPERIMENTAL! Do not use!

Parameters

aArray of arrays to join
sepSeparator elements

Example

[[1,2], [3,4]].join([10,20])  # [1,2,10,20,3,4]
join(a:Arr, s:Str) Source: stdlib.ngs:3098
Join non-strings. Converts a elements to string first, then uses built-in join().

Parameters

aArray to join
sDelimiter

Returns

Str

Example

[1,2,3].join("::")  # The string 1::2::3
join(threads:Arr) Source: stdlib.ngs:4874
Joins threads.

Parameters

threadsArr of Thread.

Returns

Arr, the results from threads, in order.
join(threads:Threads) Source: stdlib.ngs:4882
Joins threads.

Returns

Arr, the results from threads, in order.
join(t:Thread) Source: stdlib.ngs:4894
Joins on thread. Waits for the thread to finish and returns the result from the thread. Currently, if a thread throwed an exception, it will be returned as the value. In future it might re-throw the exception, probably wrapped in ThreadExeption.

Returns

Any