Generic Instance Method

encode(contentsOf:)

Encodes the elements of the given sequence.

Required.

Declaration

mutating func encode<T>(contentsOf sequence: T) throws where T : Sequence, T.Element == String

Parameters

sequence

The sequences whose contents to encode.