foreach return
Posted to
tcl
by jima at Wed Jan 08 18:53:14 GMT 2014
view raw
(Desktop) 2 %
proc
a {} {
>
foreach
v {1 2 3 4} {
>
if
{
$v
eq 2} {
return
$v
}
> }
>
return
1
> }
(Desktop) 3 % a
2
(Desktop) 4 %
Recent Posts
tcl by bch
11 hours ago
tcl by Bradipo
14 hours ago
tcl by aspect
14 hours ago
tcl by Bradipo
15 hours ago
tcl by Bradipo
16 hours ago
tcl by Bradipo
17 hours ago
lilypond by Bradipo
1 days ago
tcl by cgm
12 days ago
tcl by dandyn
21 days ago
tcl by Stu
21 days ago
Submit
New paste
Documentation
From Jabber