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
decenhash by decenhash
5 days ago
tcl by Bradipo
5 days ago
tcl by kbk
16 days ago
tcl by oldlaptop
19 days ago
tcl by Julian Noble
25 days ago
tcl by oldlaptop
48 days ago
tcl by dandyn
53 days ago
tcl by oldlaptop
56 days ago
tcl by apn
58 days ago
tcl by rmax
61 days ago
Submit
New paste
Documentation
From Jabber