-
Undocumented
Declaration
Swift
associatedtype Last -
Provides a
Prismbetween this structure and its init and last element.Declaration
Swift
static var snoc: Prism<Self, (Self, Last)> { get }
-
initialOptionExtension methodProvides an
AffineTraversalbetween this structure and its initial part (all elements but the last one).Declaration
Swift
static var initialOption: AffineTraversal<Self, Self> { get } -
lastOptionExtension methodProvides an
AffineTraversalbetween this structure and its last element.Declaration
Swift
static var lastOption: AffineTraversal<Self, Last> { get } -
snoc(_:)Extension method -
snoc(_:)Extension method -
initialExtension methodRetrieves the initial part of this structure (all elements but the last one).
Declaration
Swift
var initial: Option<Self> { get } -
lastExtension method -
append(_:)Extension methodAppends an element at the end of this structure.
Declaration
Swift
func append(_ a: Last) -> SelfParameters
aElement to append.
Return Value
A new structure with the provided element at the end.
-
unsnocExtension method
Install in Dash
Snoc Protocol Reference