Skip to content

Commit

Permalink
backport of commit c1d350e
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed May 2, 2023
1 parent ebf87e3 commit c57691f
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions website/docs/language/expressions/types.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,17 @@ The Terraform language uses the following types for its values:
numbers like `15` and fractional values like `6.283185`.
* `bool`: a boolean value, either `true` or `false`. `bool` values can be used in conditional
logic.
* `list` (or `tuple`): a sequence of values, like
`["us-west-1a", "us-west-1c"]`. Elements in a list or tuple are identified by
consecutive whole numbers, starting with zero.
* `map` (or `object`): a group of values identified by named labels, like
* `list`: a sequence of values, like `["us-west-1a", "us-west-1c"]`. Elements in a list are
identified by consecutive whole numbers, starting with zero.
* `set`: a collection of unique values that do not have any secondary identifiers or ordering.
* `map`: a group of values identified by named labels, like
`{name = "Mabel", age = 52}`.

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

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

Expand Down

0 comments on commit c57691f

Please sign in to comment.