Skip to content

Commit 4ff22d9

Browse files
authored
Merge pull request #373 from d4v1d03/main
added how to join a list to a string
2 parents c806411 + 09f584c commit 4ff22d9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/user_docs/support/faq-kcl.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2646,3 +2646,12 @@ $Env:KCL_CACHE_PATH = "C:\temp"
26462646
```
26472647

26482648
After you set the `KCL_CACHE_PATH`, when you run any KCL commands, the `.kclvm` and other KCL-related directories will be generated on the new configured path. Make sure to restart the terminal or any applications that need to use this environment variable, so that they pick up the updated configuration.
2649+
2650+
## 65. How to join a list to a string in KCL?
2651+
2652+
If we want to join a given list L = ['a', 'b', 'c'] into a string with some sepeartor (like a comma ",").
2653+
2654+
```bash
2655+
S = ",".join(['a', 'b', 'c'])
2656+
```
2657+

0 commit comments

Comments
 (0)