-
Undocumented
Declaration
Swift
associatedtype Last
-
Provides a
Prism
between this structure and its init and last element.Declaration
Swift
static var snoc: Prism<Self, (Self, Last)> { get }
-
initialOption
Extension methodProvides an
AffineTraversal
between this structure and its initial part (all elements but the last one).Declaration
Swift
static var initialOption: AffineTraversal<Self, Self> { get }
-
lastOption
Extension methodProvides an
AffineTraversal
between this structure and its last element.Declaration
Swift
static var lastOption: AffineTraversal<Self, Last> { get }
-
snoc(_:)
Extension method -
snoc(_:)
Extension method -
initial
Extension methodRetrieves the initial part of this structure (all elements but the last one).
Declaration
Swift
var initial: Option<Self> { get }
-
last
Extension method -
append(_:)
Extension methodAppends an element at the end of this structure.
Declaration
Swift
func append(_ a: Last) -> Self
Parameters
a
Element to append.
Return Value
A new structure with the provided element at the end.
-
unsnoc
Extension method