NonEmptyArray

public final class NonEmptyArray<A> : NonEmptyArrayOf<A>

Undocumented

  • Undocumented

    Declaration

    Swift

    public let head: A
  • Undocumented

    Declaration

    Swift

    public let tail: [A]
  • Undocumented

    Declaration

    Swift

    public static func + (lhs: NonEmptyArray<A>, rhs: NonEmptyArray<A>) -> NonEmptyArray<A>
  • Undocumented

    Declaration

    Swift

    public static func + (lhs: NonEmptyArray<A>, rhs: [A]) -> NonEmptyArray<A>
  • Undocumented

    Declaration

    Swift

    public static func + (lhs: NonEmptyArray<A>, rhs: A) -> NonEmptyArray<A>
  • Undocumented

    Declaration

    Swift

    public static func of(_ head: A, _ tail: A...) -> NonEmptyArray<A>
  • Undocumented

    Declaration

    Swift

    public static func fromArray(_ array: [A]) -> Option<NonEmptyArray<A>>
  • Undocumented

    Declaration

    Swift

    public static func fromArrayUnsafe(_ array: [A]) -> NonEmptyArray<A>
  • Undocumented

    Declaration

    Swift

    public static func fix(_ fa: NonEmptyArrayOf<A>) -> NonEmptyArray<A>
  • Undocumented

    Declaration

    Swift

    public init(head: A, tail: [A])
  • Undocumented

    Declaration

    Swift

    public func all() -> [A]
  • Undocumented

    Declaration

    Swift

    public func getOrNone(_ i: Int) -> Option<A>
  • Undocumented

    Declaration

    Swift

    public subscript(index: Int) -> Option<A> { get }
  • Undocumented

    Declaration

    Swift

    public static func head() -> Lens<NonEmptyArray<A>, A>
  • Undocumented

    Declaration

    Swift

    public static func tail() -> Lens<NonEmptyArray<A>, [A]>
  • Declaration

    Swift

    public var description: String { get }
  • Declaration

    Swift

    public var debugDescription: String { get }
  • Undocumented

    Declaration

    Swift

    public func combine(_ other: NonEmptyArray<A>) -> NonEmptyArray<A>