Hyperlinkv0.8.0-beta.28

String

String.concatconsteffect/String.ts:154
<B extends string>(that: B): <A extends string>(self: A) => Concat<A, B>
<A extends string, B extends string>(self: A, that: B): Concat<A, B>

Concatenates two strings at runtime.

Example (Concatenating strings)

import { pipe, String } from "effect"

const result1 = String.concat("hello", "world")
console.log(result1) // "helloworld"

const result2 = pipe("hello", String.concat("world"))
console.log(result2) // "helloworld"
combining
Source effect/String.ts:1544 lines
export const concat: {
  <B extends string>(that: B): <A extends string>(self: A) => Concat<A, B>
  <A extends string, B extends string>(self: A, that: B): Concat<A, B>
} = dual(2, (self: string, that: string): string => self + that)