This example illustrates some typical manipulations of repositories in Maple.
Make a temporary workspace.
Define a utility to print an abbreviated repository listing.
Create an empty repository.
Create an expression to be stored in our empty repository. A typical Maple package has a structure similar to, but is much larger than this. (In practice, its definition is read from a source file, not entered inline.)
Ensure that savelib places m in the correct repository.
The listing of the repository now shows that the repository contains not only m, but also two anonymous members that have been given the numeric references 1 and 2.
The header of the maple.mla file contains the next available numeric identifier for the repository and is updated whenever something is saved to the repository that has no global name.
>
|
u := proc() local L; proc(x) L - x end end():
|
Clean up.