newline 2 list (but not sublists!)
Posted to
tcl
by silas2 at Fri Jan 12 23:00:52 GMT 2024
view raw
set
x [convert-to-list {
foo
bar
another line
{
a b c
d e f
}
}]
After executing,
$x
should be:
{foo bar {another line} {
a b c
d e f
}}
[
llength
$x
] == 4
Recent Posts
tcl by iobates
3 days ago
tcl by mookie
6 days ago
tcl by sebres
8 days ago
tcl by iobates
25 days ago
tcl by iobates
25 days ago
tcl by iobates
25 days ago
tcl by FLORENTIS
29 days ago
tcl by Florentis
29 days ago
tcl by schelte
34 days ago
tcl by iobates
34 days ago
Submit
New paste
Documentation
From Jabber