Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
proc cons_list {x y z} {
# construct list of 3 elements
return [list $x $y $z]
}
# running proc
set result [cons_list 1 "Hello" 3]
# result
puts "result = {$result}"
puts "1.part of result = [lindex $result 0]"
puts "2.part of result = [lindex $result 1]"
puts "3.part of result = [lindex $result end]"
D:\>tclsh85 pok.tcl
result = {1 Hello 3}
1.part of result = 1
2.part of result = Hello
3.part of result = 3