Skip to content

Commit 35baa30

Browse files
authored
Merge pull request #33132 from briskt/schparky-edit-types
2 parents 802d49a + 8814662 commit 35baa30

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

website/docs/language/expressions/types.mdx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,16 @@ The Terraform language uses the following types for its values:
2121
numbers like `15` and fractional values like `6.283185`.
2222
* `bool`: a boolean value, either `true` or `false`. `bool` values can be used in conditional
2323
logic.
24-
* `list` (or `tuple`): a sequence of values, like
25-
`["us-west-1a", "us-west-1c"]`. Elements in a list or tuple are identified by
26-
consecutive whole numbers, starting with zero.
27-
* `map` (or `object`): a group of values identified by named labels, like
24+
* `list`: a sequence of values, like `["us-west-1a", "us-west-1c"]`. Identify elements in a list with consecutive whole numbers, starting with zero.
25+
* `set`: a collection of unique values that do not have any secondary identifiers or ordering.
26+
* `map`: a group of values identified by named labels, like
2827
`{name = "Mabel", age = 52}`.
2928

30-
Strings, numbers, and bools are sometimes called _primitive types._ Lists/tuples and maps/objects are sometimes called _complex types,_ _structural types,_ or _collection types._
29+
Strings, numbers, and bools are sometimes called _primitive types._ Lists and sets are forms
30+
of tuples. Maps are a form of objects. Tuples and objects are sometimes called _complex types,_
31+
_structural types,_ or _collection types._ See
32+
[Type Constraints](/terraform/language/expressions/type-constraints) for a more detailed
33+
description of complex types.
3134

3235
Finally, there is one special value that has _no_ type:
3336

0 commit comments

Comments
 (0)