proc — Create a new procedure.
proc name arglist body
The proc command creates new procedures,
which are virtually indistinguishable from built-in Hecl
commands.
is the name of the new command,
name is a
list of arguments that the new command will take and make
available as local variables within the
arglist, which is
the code executed every time the command is called. If the
last element of the argument list is
body
![]() | Important |
|---|---|
| args |
, the variable
args is a list that is filled with
any arguments (including 0) above and beyond the number of
arguments specified for the proc.