The UniFunction companion object provides utility methods for initializing and converting UniFunction instances. It includes methods to construct a UniFunction from a MonadicDuple as well as an implicit conversion mechanism.
Constructs a UniFunction instance based on the provided MonadicDuple. The method converts the left side of the MonadicDuple to a tuple and pairs it with the right side, creating a UniFunction with the extracted components.
Constructs a UniFunction instance based on the provided MonadicDuple. The method converts the left side of the MonadicDuple to a tuple and pairs it with the right side, creating a UniFunction with the extracted components.
NOTE: this is here mostly for historical purposes. We no longer use MonadicDuple except as a convenience in the unit tests.
Value parameters
md
the MonadicDuple from which the UniFunction will be initialized. The left side of the MonadicDuple is expected to provide a tuple, and the right side will be combined with this tuple to construct the UniFunction.
Attributes
Returns
a new UniFunction initialized with the components derived from the given MonadicDuple.