Skip to content

join

In std/string.

fn join(self: Collection<String>, separator: String) : String

The texts of self in order, with separator between each two: ["a", "b"].join(", ") is "a, b". The one function here whose receiver is not a String, so the receiver is written.