up previous next
2.7.1 Introduction to FUNCTION
|
The most important construct in CoCoA programming is the user-defined
function. These functions take parameters, perform CoCoA commands,
and return values. Collections of functions can be stored in text
files and read into CoCoA sessions using
source
. To
prevent name conflicts of the type that are likely to arise if
functions are to be made available for use by others, the functions
can be collected in
packages.
To learn about user functions, look up
define
(online, enter
?define
).