getodk / xforms-spec

The XForms-derived specification used in the ODK ecosystem. If you are interested in building a tool that is compliant with the forms rendered by ODK tools, this is the place to start. ✨⚒✨
https://getodk.github.io/xforms-spec/
30 stars 26 forks source link

Add variadic coalesce #316

Open lognaturel opened 1 month ago

lognaturel commented 1 month ago

Currently coalesce can only take two values as arguments. It's relatively common to need to coalesce multiple values. This involves writing nested coalesce calls.

concat is a similar accumulator function. It has a variadic variant which is very helpful. It would be helpful to do the same with coalesce.