Skip to content

Commit 09f584c

Browse files
committed
added how to join a list to a string
Signed-off-by: d4v1d03 <[email protected]>
1 parent c806411 commit 09f584c

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)