Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1,4 @@
proc swap {aName bName} {
upvar 1 $aName a $bName b
lassign [list $a $b] b a
}

View file

@ -0,0 +1,4 @@
proc swap {aName bName} {
upvar 1 $aName a $bName b
foreach {b a} [list $a $b] break
}

View file

@ -0,0 +1,4 @@
proc swap {aName bName} {
upvar 1 $aName a $bName b
set a $b[set b $a; list]
}

View file

@ -0,0 +1,5 @@
set a 1
set b 2
puts "before\ta=$a\tb=$b"
swap a b
puts "after\ta=$a\tb=$b"

View file

@ -0,0 +1,5 @@
set a 1
set b 2
puts "before\ta=$a\tb=$b"
set a $b[set b $a;lindex {}]
puts "after\ta=$a\tb=$b"