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
junk by bcharder
5 days ago
tcl by egavilan
14 days ago
tcl by Stu
16 days ago
tcl by Stu
16 days ago
tcl by oldlaptop
49 days ago
tcl by oldlaptop
49 days ago
tcl by Molnija Bjornsson
54 days ago
tcl by Molnija Bjornsson
54 days ago
tcl by zmoment
54 days ago
tcl by zmoment
54 days ago
Submit
New paste
Documentation
From Jabber