-
Notifications
You must be signed in to change notification settings - Fork 0
Standard Libraries
By default the user has access to the core library module. Further can be included by using include("moduleName").
All functions below return null unless otherwise specified.
Include another library module.
Available modules: math, os, random.
Returns: Type of value, as string.
Prints value on standard output.
Takes path to file.
Returns: String with contents of the file.
Overrides contents of a file with the new string.
First arguments specifies path to file. Second is the content to write.
Create file at path.
Remove file at path.
Create directory at path.
Remove directory at path. Works only if empty.
Returns: True if directory at path exists and false if it doesn't.
Returns: True if file at path exists and false if it doesn't.
Stops the program and reads text written by the user. Argument specifies the amount of chars to take.
Returns: String entered by the user.
Stops the program and reads text written by the user.
Returns: True if the text entered by the user is case insensitive yes/y, false if the text entered by the user is case insensitive no/n. Null on any other case.
Exits the program with the given exit code.
Returns: Current date and hour, as a string.
Init pseudo random number generation with time.
Returns: Either true or false. The argument specifies the chance for true, it has to be between 0-1.
Returns: Random integer.
First argument specifies the minimum value, second the maximum.
Returns: Random integer between min and max.
First argument specifies the minimum value, second the maximum.
Returns: Random number (double) between min and max.
Unless otherwise specified, see https://cplusplus.com/reference/cmath/ for function details.
Returns: Number.
Returns: Number.
Returns: Number.
Returns: Number.
Returns: Number.
Returns: Number.
Returns: Number.
Returns: Number.
Returns: Number.
Returns: Number.
Returns: Number.
Returns: Number.
Returns: Number.
Returns: Number.
Returns: Number.
Returns: Number.
Returns: Number of radians converted from degrees.
Returns: Number of degrees converted from radians.