-
Notifications
You must be signed in to change notification settings - Fork 0
Variables
C272 edited this page Dec 18, 2019
·
5 revisions
To create a variable, you use the keyword "let
". For example:
let b = 3;
To delete a variable, you use the "disregard" keyword. You can disregard a single variable, or all variables at once by using a wildcard (*
).
Note: using '*' only deletes variables that are in the current scope. Variables in other scopes may not be affected.
disregard b;
disregard *;
Variables can be of the following types:
Type | Example Value |
---|---|
String | "example" |
Integer | 1 |
Float | 1.23 |
Rational | 1/23 |
Boolean | true |
Bytes | 0x2B |
List | [3, 4, 5, 6] |
Function | ... |
EmulatedFunction | ... |
Object | ... |
Null | null |
Algo (c) Larry Tang, 2019.
Commercial use of Algo must include the LICENSE
file in the same directory as the executable.
Standard Library Documentation: