opentofu/lang
Kristin Laemmert d4669246c7
funcs/coalesce: return the first non-null, non-empty-string element from a sequence (#21002)
* funcs/coalesce: return the first non-null, non-empty element from a
sequence.

The go-cty coalesce function, which was originally used here, returns the
first non-null element from a sequence. Terraform 0.11's coalesce,
however, returns the first non-empty string from a list of strings.

This new coalesce function aims to preserve terraform's documented
functionality while adding support for additional argument types. The
tests include those in go-cty and adapted tests from the 0.11 version of
coalesce.

* website/docs: update coalesce function document
2019-04-12 13:57:52 -04:00
..
blocktoattr lang/blocktoattr: Apply fixup within already-fixed-up blocks too 2019-04-05 14:22:41 -07:00
funcs funcs/coalesce: return the first non-null, non-empty-string element from a sequence (#21002) 2019-04-12 13:57:52 -04:00
data_test.go core: Static-validate resource references against schemas 2018-11-26 08:25:03 -08:00
data.go core: Static-validate resource references against schemas 2018-11-26 08:25:03 -08:00
doc.go lang: new package for the runtime parts of the config language 2018-10-16 18:44:26 -07:00
eval_test.go lang: EvalBlock should use ReferencesInBlock 2019-04-03 15:57:17 -07:00
eval.go lang: EvalBlock should use ReferencesInBlock 2019-04-03 15:57:17 -07:00
functions.go funcs/coalesce: return the first non-null, non-empty-string element from a sequence (#21002) 2019-04-12 13:57:52 -04:00
references.go lang: Detect references when a list/set attr is defined using blocks 2019-03-28 10:41:01 -07:00
scope.go terraform: ugly huge change to weave in new HCL2-oriented types 2018-10-16 18:46:46 -07:00