RosettaCodeData/Task/Order-two-numerical-lists/Tcl/order-two-numerical-lists.tcl
Ingy döt Net b83f433714 tasks a-s
2013-04-10 23:57:08 -07:00

10 lines
167 B
Tcl

proc numlist< {A B} {
foreach a $A b $B {
if {$a<$b} {
return 1
} elseif {$a>$b} {
return 0
}
}
return 0
}