Arithmetic evaluation: Difference between revisions

→‎{{header|Tcl}}: use 'in' operator
(→‎{{header|Tcl}}: use 'in' operator)
Line 1,462:
if [regexp {[()]} $args] {
eval s [string map {( "\[s " ) \]} $args]
} elseif {[lsearch"*" -exactin $args *]>=0} {
s [s_group args *]
} elseif {[lsearch"/" -exactin $args /]>=0} {
s [s_group args /]
} elseif {[lsearch"+" -exactin $args +]>=0} {
s [s_group args +]
} elseif {[lsearch "-exact" in $args -]>=0} {
s [s_group args -]
} else {
Anonymous user