method List.join
Concatenation of the elements separated by sep.
Example:
fn main() io {
print(["a", "b", "c"].join("-"))
}Output
a-b-c
pub(api) fn join(sep: str) -> strSince. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
sep | str |
Returns
str
Effects
none declared (pure unless the body says otherwise)
Defined in: std/core/text.oxl:1002