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:744
Join items to a single string using given seperator s

Returns

Str
join(a:Arr, sep:Arr) Source: stdlib.ngs:1983
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:2255
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:3870
Joins threads.

Parameters

threadsArr of Thread.

Returns

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

Returns

Arr, the results from threads, in order.
join(t:Thread) Source: stdlib.ngs:3884
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