Skip to content

Commit 8352c55

Browse files
committed
chore: format faq documents
Signed-off-by: peefy <[email protected]>
1 parent 998aff8 commit 8352c55

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/user_docs/support/faq-kcl.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2527,17 +2527,17 @@ f2 = lambda t: Type1 -> Type2 {
25272527
} # The type of f2 is (Type1) -> Type2
25282528
```
25292529

2530-
## 60. How to convert a list of lists to a single list in KCL?
2530+
## 60. How to convert a list of lists to a single list in KCL?
25312531

2532-
To convert a list of lists into a single list, we use the `sum()` function. For example if we have a number of lists such as [[1,2],[3,4]], [5,6], we use the KCL code given below to convert these three lists into a single list:
2532+
To convert a list of lists into a single list, we use the `sum()` function. For example if we have a number of lists such as `[[1,2],[3,4]], [5,6]`, we use the KCL code given below to convert these three lists into a single list:
25332533

25342534
```KCL
25352535
final_list = sum([[1,2],[3,4]],[5,6])
25362536
```
25372537

25382538
The above KCL code gives the output:
25392539

2540-
```bash
2540+
```yaml
25412541
final_list:
25422542
- 5
25432543
- 6
@@ -2546,4 +2546,3 @@ final_list:
25462546
- 3
25472547
- 4
25482548
```
2549-

0 commit comments

Comments
 (0)