Jump to content

Function definition: Difference between revisions

m
(Pari/GP)
m (→‎{{header|Tcl}}: whitespace)
Line 898:
return [expr {$arg1 * $arg2}]
}</lang>
{{works with|Tcl|8.5}} <br>
You can also create functions that work directly inside expressions. This is done by creating the command with the correct name (that is, in the ''tcl::mathfunc'' namespace):
<lang tcl>proc tcl::mathfunc::multiply {arg1 arg2} {
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.