ds_common_placeholder_py_lib.functions.values

File: functions/values.py Region: ds-common-placeholder-py-lib

Description

coalesce: the first argument that is not missing.

Functions

coalesce(args) → Any

Return the first argument that has a value, reading them left to

Module Contents

ds_common_placeholder_py_lib.functions.values.coalesce(args: list[collections.abc.Callable[[], Any]]) → Any[source]

Return the first argument that has a value, reading them left to right and stopping there. Only a missing value (no such path, null, blank) moves on; any other error is raised.

Raises:

MissingValue – If every argument is missing.