Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
20
Task/Sort-three-variables/Tcl/sort-three-variables.tcl
Normal file
20
Task/Sort-three-variables/Tcl/sort-three-variables.tcl
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
set x {lions, tigers, and}
|
||||
set y {bears, oh my!}
|
||||
set z {(from the "Wizard of OZ")}
|
||||
|
||||
lassign [lsort [list $x $y $z]] x y z
|
||||
|
||||
puts "x: $x"
|
||||
puts "y: $y"
|
||||
puts "z: $z"
|
||||
|
||||
|
||||
set x 77444
|
||||
set y -12
|
||||
set z 0
|
||||
|
||||
lassign [lsort [list $x $y $z]] x y z
|
||||
|
||||
puts "x: $x"
|
||||
puts "y: $y"
|
||||
puts "z: $z"
|
||||
Loading…
Add table
Add a link
Reference in a new issue