Built-in Functions Reference
Complete reference of all globally accessible built-in functions in the Djazair runtime.
| Function | Signature | Description |
|---|---|---|
print | print(...args) | Prints values to console output with spaces between items. |
input | input(prompt?) | Prompts user for text input in the terminal. |
type | type(val) | Returns type name string (Int, Float, String, Array, etc.). |
str | str(val) | Converts value to String representation. |
int | int(val) | Converts value to signed 32-bit integer. |
float | float(val) | Converts value to 64-bit float. |
bool | bool(val) | Evaluates truthiness, returning True or False. |
num | num(val) | Parses string into Int or Float automatically. |
abs | abs(number) | Returns absolute value. |
round | round(num, digits?) | Rounds number to optional decimal places. |
range | range(start, stop?, step?) | Generates an array containing integer sequence. |
enumerate | enumerate(arr, start?) | Returns array of [index, item] pairs. |
zip | zip(...arrays) | Aggregates elements from multiple arrays. |
chr | chr(codePoint) | Returns character string from Unicode code point. |
ord | ord(char) | Returns integer Unicode code point of character. |
isNull | isNull(val) | Returns True if value is Null. |
isString | isString(val) | Returns True if value is String. |
isNumber | isNumber(val) | Returns True if value is Int or Float. |
isInt | isInt(val) | Returns True if value is Int. |
isFloat | isFloat(val) | Returns True if value is Float. |
isBool | isBool(val) | Returns True if value is Bool. |
isArray | isArray(val) | Returns True if value is Array. |
isMap | isMap(val) | Returns True if value is Map. |
isFunction | isFunction(val) | Returns True if value is Function. |
isClass | isClass(val) | Returns True if value is Class. |
exit | exit(code = 0) | Terminates the current process with exit status code. |
getFile | getFile() | Returns current script file path. |
getDir | getDir() | Returns current script directory path. |
getLine | getLine() | Returns current executing line number. |