Skip to content

Instantly share code, notes, and snippets.

View Pyker's full-sized avatar
🛠️
Hacking away

Pedro Cunha Pyker

🛠️
Hacking away
View GitHub Profile
@Pyker
Pyker / gist:de2a76f3a71e4e5a0018
Created November 22, 2014 19:47
Split string, skipping empty elements
proc split_noempty {args} {
set ret {}
foreach elem [split {*}$args] {
if {$elem != ""} {
lappend ret $elem
}
}
return $ret
}