OxL Reference

method List.join

Concatenation of the elements separated by sep.

Example:

oxl✓ checked in CI
fn main() io {
  print(["a", "b", "c"].join("-"))
}
Output
a-b-c
pub(api) fn join(sep: str) -> str

Since. 1.0.0-beta

Parameters

NameType
sepstr

Returns

str

Effects

none declared (pure unless the body says otherwise)

Defined in: std/core/text.oxl:1002

See also