RosettaCodeData/Task/Order-two-numerical-lists/Tcl/order-two-numerical-lists.tcl
2023-07-01 13:44:08 -04: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
}