String

@frozen
struct String
  • Provides a Traversal based on the Traverse instance of this type.

    Declaration

    Swift

    static var traversal: Traversal<String, Character> { get }
  • Undocumented

    Declaration

    Swift

    public typealias EachFoci = Character
  • Declaration

    Swift

    public static var each: Traversal<String, Character> { get }
  • Undocumented

    Declaration

    Swift

    public typealias IndexType = Int
  • Undocumented

    Declaration

    Swift

    public typealias IndexFoci = Character
  • Declaration

    Swift

    public static func index(_ i: Int) -> AffineTraversal<String, Character>
  • Undocumented

    Declaration

    Swift

    public typealias FilterIndexType = Int
  • Undocumented

    Declaration

    Swift

    public typealias FilterIndexFoci = Character
  • Declaration

    Swift

    public static func filter(_ predicate: @escaping (Int) -> Bool) -> Traversal<String, Character>
  • Undocumented

    Declaration

    Swift

    public typealias First = Character
  • Declaration

    Swift

    public static var cons: Prism<String, (Character, String)> { get }
  • Undocumented

    Declaration

    Swift

    public typealias Last = Character
  • Declaration

    Swift

    public static var snoc: Prism<String, (String, Character)> { get }
  • Provides an Iso between String and Array of Character.

    Declaration

    Swift

    static var toArray: Iso<String, [Character]> { get }
  • Provides an Iso between String and ArrayK of Character.

    Declaration

    Swift

    static var toArrayK: Iso<String, ArrayK<Character>> { get }
  • Declaration

    Swift

    public func combine(_ other: String) -> String
  • Declaration

    Swift

    public static func empty() -> String