@@ -113,6 +113,8 @@ const f value noun =
116+{-| Extracts a `BigInt`.
116bigint : Deconstructor BigInt
118bigint : Deconstructor BigInt
117bigint x =
119bigint x =
118 case x of
120 case x of
@@ -272,6 +274,8 @@ lazy f noun =
272 f () noun
274 f () noun
277+{-| Maps over the result of the deconstructor.
275map : (a -> b) -> Deconstructor a -> Deconstructor b
279map : (a -> b) -> Deconstructor a -> Deconstructor b
276map g f noun =
280map g f noun =
277 f noun |> Maybe.map g
281 f noun |> Maybe.map g