Sequence

public extension Sequence
From Chord_Provider:
public extension Sequence where Iterator.Element == NSAttributedString
  • uniqued(by:) From SwiftlyChordUtilities

    Filter a Sequence by an unique keypath

    Declaration

    Swift

    func uniqued<Type: Hashable>(by keyPath: KeyPath<Element, Type>) -> [Element]

    Parameters

    keyPath

    The keypath

    Return Value

    The unique Sequence

Available where Iterator.Element == NSAttributedString

  • joined(with:) From Chord_Provider

    Join an NSAttributedString with a seperator

    Declaration

    Swift

    func joined(with separator: NSAttributedString) -> NSAttributedString

    Parameters

    separator

    The separator as NSAttributedString

    Return Value

    A joined NSAttributedString

  • joined(with:) From Chord_Provider

    Join an NSAttributedString

    Declaration

    Swift

    func joined(with separator: String = "") -> NSAttributedString

    Parameters

    separator

    The separator as String

    Return Value

    A joined NSAttributedString