Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
3
Task/Function-definition/Tcl/function-definition-1.tcl
Normal file
3
Task/Function-definition/Tcl/function-definition-1.tcl
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
proc multiply { arg1 arg2 } {
|
||||
return [expr {$arg1 * $arg2}]
|
||||
}
|
||||
8
Task/Function-definition/Tcl/function-definition-2.tcl
Normal file
8
Task/Function-definition/Tcl/function-definition-2.tcl
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
proc tcl::mathfunc::multiply {arg1 arg2} {
|
||||
return [expr {$arg1 * $arg2}]
|
||||
}
|
||||
|
||||
# Demonstrating...
|
||||
if {multiply(6, 9) == 42} {
|
||||
puts "Welcome, Citizens of Golgafrincham from the B-Ark!"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue