-
prism(for:)Extension methodGenerates a prism for an enum case with no associated values.
Declaration
Swift
static func prism(for case: Self) -> Prism<Self, ()>Parameters
caseCase where the Prism must focus.
Return Value
A Prism focusing on the provided case.
-
prism(for:)Extension methodGenerates a prism for an enum case with associated values.
Declaration
Swift
static func prism<A>(for constructor: @escaping (A) -> Self) -> Prism<Self, A>Parameters
constructorConstructor for the case with associated values.
Return Value
A Prism focusing on the provided case.
Install in Dash
AutoPrism Protocol Reference