tcl::mathop
tcl::mathop::OP ?arg ...?
Each operator of expr as a command: +, -, *, /, %, **, <<, >>, &, |, ^, ~, !, ==, !=, <, <=, >, >=, eq, ne, in, and ni. + and * take any count of arguments. Import them with namespace path tcl::mathop to write + 1 2.
This page also has tcl::mathop::!, tcl::mathop::!=, tcl::mathop::%, tcl::mathop::&, tcl::mathop::*, tcl::mathop::**, tcl::mathop::+, tcl::mathop::-, tcl::mathop::/, tcl::mathop::<, tcl::mathop::<<, tcl::mathop::<=, tcl::mathop::==, tcl::mathop::>, tcl::mathop::>=, tcl::mathop::>>, tcl::mathop::^, tcl::mathop::eq, tcl::mathop::in, tcl::mathop::ne, tcl::mathop::ni, tcl::mathop::|, tcl::mathop::~.
Examples
A click on an example runs it in the shell of the page.
tcl::mathop::+ 1 2 3:6tcl::mathop::< 1 2 3:1
Facts
- Capability: none.
- Compute cost: one compute unit for the call, and more for the commands that it runs.