Algosim documentation: delete

delete

Deletes a variable.

Syntax

Description

If X is a variable (or a string containing the name of a variable), then delete(X) permanently attempts to delete the variable. If successful, the function returns success.

If the variable is protected, it cannot be deleted.

Examples

a ≔ 5
5
delete(a)
success
delete(π)
failure
Cannot modify or delete protected variable "π".
Call stack: delete

See also