Skip to content

Commit 5fb6728

Browse files
committed
docs: fix docs formatting -Terraform
1 parent d127050 commit 5fb6728

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

docs/terraform/introduction.md

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1716,59 +1716,59 @@ There are many categories of functions like Number functions, String functions,
17161716

17171717
Numeric functions are used to perform arithmetic operations like addition, subtraction, min, max, and rounding.
17181718

1719-
- max(1, 2, 3): Returns the maximum value from the list of numbers. In this case, it will return 3.
1720-
- min(1, 2, 3): Returns the minimum value from the list of numbers. In this case, it will return 1.
1721-
- ceil(10.1): Returns the smallest integer value greater than or equal to the number. In this case, it will return 11.
1722-
- floor(10.9): Returns the largest integer value less than or equal to the number. In this case, it will return 10.
1719+
- `max(1, 2, 3): Returns the maximum value from the list of numbers. In this case, it will return 3.
1720+
- `min(1, 2, 3)`: Returns the minimum value from the list of numbers. In this case, it will return 1.
1721+
- `ceil(10.1)`: Returns the smallest integer value greater than or equal to the number. In this case, it will return 11.
1722+
- `floor(10.9)`: Returns the largest integer value less than or equal to the number. In this case, it will return 10.
17231723

17241724
### String Functions
17251725

17261726
String functions are used to perform string manipulation operations like concatenation, substring, and formatting.
17271727

1728-
- split(",", "ami-xyz, AMI-ABC, ami-pqr"): Splits the string into a list of substrings based on the delimiter. In this case, it will return ["ami-xyz", "AMI-ABC", "ami-pqr"].
1729-
- lower("AMI-XYZ"): Converts the string to lowercase. In this case, it will return "ami-xyz".
1730-
- upper("ami-xyz"): Converts the string to uppercase. In this case, it will return "AMI-XYZ".
1731-
- title("ami-xyz"): Converts the string to title case. In this case, it will return "Ami-Xyz".
1732-
- substr("ami-xyz", 0, 3): Returns a substring from the string. In this case, it will return "ami".
1733-
- join(",", ["ami-xyz", "ami-abc", "ami-pqr"]): Joins the list of strings into a single string. In this case, it will return "ami-xyz,ami-abc,ami-pqr".
1728+
- `split(",", "ami-xyz, AMI-ABC, ami-pqr")`: Splits the string into a list of substrings based on the delimiter. In this case, it will return ["ami-xyz", "AMI-ABC", "ami-pqr"].
1729+
- `lower("AMI-XYZ")`: Converts the string to lowercase. In this case, it will return "ami-xyz".
1730+
- `upper("ami-xyz")`: Converts the string to uppercase. In this case, it will return "AMI-XYZ".
1731+
- `title("ami-xyz")`: Converts the string to title case. In this case, it will return "Ami-Xyz".
1732+
- `substr("ami-xyz", 0, 3)`: Returns a substring from the string. In this case, it will return "ami".
1733+
- `join(",", ["ami-xyz", "ami-abc", "ami-pqr"])`: Joins the list of strings into a single string. In this case, it will return "ami-xyz,ami-abc,ami-pqr".
17341734

17351735
### Collection Functions
17361736

17371737
Collection functions are used to perform operations on lists and maps like filtering, sorting, and merging.
17381738

1739-
- length(["ami-xyz", "ami-abc", "ami-pqr"]): Returns the length of the list. In this case, it will return 3.
1740-
- index(["ami-xyz", "ami-abc", "ami-pqr"], "ami-abc"): Returns the index of the element in the list. In this case, it will return 1.
1741-
- element(["ami-xyz", "ami-abc", "ami-pqr"], 1): Returns the element at the index in the list. In this case, it will return "ami-abc".
1742-
- contains(["ami-xyz", "ami-abc", "ami-pqr"], "ami-abc"): Returns true if the element is present in the list. In this case, it will return true.
1739+
- `length(["ami-xyz", "ami-abc", "ami-pqr"])`: Returns the length of the list. In this case, it will return 3.
1740+
- `index(["ami-xyz", "ami-abc", "ami-pqr"], "ami-abc")`: Returns the index of the element in the list. In this case, it will return 1.
1741+
- `element(["ami-xyz", "ami-abc", "ami-pqr"], 1)`: Returns the element at the index in the list. In this case, it will return "ami-abc".
1742+
- `contains(["ami-xyz", "ami-abc", "ami-pqr"], "ami-abc")`: Returns true if the element is present in the list. In this case, it will return true.
17431743

17441744
### Map Functions
17451745

17461746
Map functions are used to perform operations on maps like merging, filtering, and transforming.
17471747

1748-
- keys({"ami-xyz": "ami-abc", "ami-abc": "ami-pqr"}): Returns the keys of the map. In this case, it will return ["ami-xyz", "ami-abc"].
1749-
- values({"ami-xyz": "ami-abc", "ami-abc": "ami-pqr"}): Returns the values of the map. In this case, it will return ["ami-abc", "ami-pqr"].
1750-
- lookup({"ami-xyz": "ami-abc", "ami-abc": "ami-pqr"}, "ami-abc"): Returns the value of the key in the map. In this case, it will return "ami-pqr".
1751-
- lookup({"ami-xyz": "ami-abc", "ami-abc": "ami-pqr"}, "ami-xyz", "default"): Returns the value of the key in the map or the default value. In this case, it will return "ami-abc".
1748+
- `keys({"ami-xyz": "ami-abc", "ami-abc": "ami-pqr"})`: Returns the keys of the map. In this case, it will return ["ami-xyz", "ami-abc"].
1749+
- `values({"ami-xyz": "ami-abc", "ami-abc": "ami-pqr"})`: Returns the values of the map. In this case, it will return ["ami-abc", "ami-pqr"].
1750+
- `lookup({"ami-xyz": "ami-abc", "ami-abc": "ami-pqr"}, "ami-abc")`: Returns the value of the key in the map. In this case, it will return "ami-pqr".
1751+
- `lookup({"ami-xyz": "ami-abc", "ami-abc": "ami-pqr"}, "ami-xyz", "default")`: Returns the value of the key in the map or the default value. In this case, it will return "ami-abc".
17521752

17531753
### Numeric Operators
17541754

17551755
Numeric operators are used to perform arithmetic operations like addition, subtraction, multiplication, and division.
17561756

1757-
- 1 + 2: Addition
1758-
- 5 - 3: Subtraction
1759-
- 2 * 3: Multiplication
1760-
- 6 / 2: Division
1757+
- `1 + 2`: Addition
1758+
- `5 - 3`: Subtraction
1759+
- `2 * 3`: Multiplication
1760+
- `6 / 2`: Division
17611761

17621762
### Equality Operators
17631763

17641764
Equality operators are used to compare values like equal, not equal, greater than, and less than.
17651765

1766-
- 1 == 2: Equal
1767-
- 1 != 2: Not equal
1768-
- 1 > 2: Greater than
1769-
- 1 < 2: Less than
1770-
- 1 >= 2: Greater than or equal
1771-
- 1 <= 2: Less than or equal
1766+
- `1 == 2`: Equal
1767+
- `1 != 2`: Not equal
1768+
- `1 > 2`: Greater than
1769+
- `1 < 2`: Less than
1770+
- `1 >= 2`: Greater than or equal
1771+
- `1 <= 2`: Less than or equal
17721772

17731773
### Logical Operators
17741774

0 commit comments

Comments
 (0)