any →
try(
    ...branches: entry
) → any

Returns the first candidate result accepted by its predicate, or the final fallback, or null.

Parameters

Name Type Required Description
branches entry Variadic (two or more) Ordered branches with an optional final catch-all fallback.

Argument evaluation

  • branches: Branches reuse the original input and stop at the first accepted branch. The output type depends on the selected expression.

Examples

-5 | try(absolute => greater-than(10), _ => 0)  0

Kind: Function
Scope: flow
Aliases: None


This site uses Just the Docs, a documentation theme for Jekyll.