Generic Instance Method

append(contentsOf:)

Appends the characters in the given sequence to the string.

Declaration

mutating func append<S>(contentsOf newElements: S) where S : Sequence, S.Iterator.Element == Character

Parameters

newElements

A sequence of characters.

Relationships

Generic Constraints

  • S : Sequence
  • S.Iterator.Element == Character