Hyperlinkv0.8.0-beta.28

Array

Array.joinconsteffect/Array.ts:4527
(sep: string): (self: Iterable<string>) => string
(self: Iterable<string>, sep: string): string

Joins string elements with a separator.

Example (Joining strings)

import { Array } from "effect"

console.log(Array.join(["a", "b", "c"], "-")) // "a-b-c"
Source effect/Array.ts:45274 lines
export const join: {
  (sep: string): (self: Iterable<string>) => string
  (self: Iterable<string>, sep: string): string
} = dual(2, (self: Iterable<string>, sep: string): string => fromIterable(self).join(sep))
Referenced by 1 symbols