Documentation Index
Fetch the complete documentation index at: https://docs.canton.network/llms.txt
Use this file to discover all available pages before exploring further.
DA.Either
TheEither type represents values with two possibilities.
It is sometimes used to represent a value which is either correct
or an error. By convention, the Left constructor is used to hold
an error value and the Right constructor is used to hold a correct
value (mnemonic: “right” also means correct).
Module Snapshot
Lifecycle
Stable.
Notices
Status:
active
Introduced in: 3.4.9
Removed in: -
Warnings: 0
Deprecations: 0
Deprecated since: -Functions
lefts
Left elements from a list.
rights
Right elements from a list.
partitionEithers
Either into two lists, the Left and
Right elements respectively. Order is maintained.
isLeft
True if the given value is a Left-value, False
otherwise.
isRight
True if the given value is a Right-value, False
otherwise.
fromLeft
Left-value, or a default value
in case of a Right-value.
fromRight
Right-value, or a default value
in case of a Left-value.
optionalToEither
Optional value to an Either value, using the supplied
parameter as the Left value if the Optional is None.
eitherToOptional
Either value to a Optional, dropping any value in
Left.