Built-in functions
Easel has a library of hundreds of built-in functions available to you. Go to the Reference section to see the full list of built-in functions.
Shadowing built-in functions
If you declare a function with the same name as a built-in function,
the built-in function gets shadowed.
This means that the built-in function is no longer accessible by its original name.
If you want to use the built-in function, you can prefix its name with Std:
(short for 'standard')
to access it.
The following example demonstrates how to shadow the built-in Random function:
pub fn Example() {
let value = Random // Calls our custom Random function
let value2 = Std:Random // Calls the built-in Random function
}
// Intentionally override the built-in Random function
pub fn Random() -> value {
return 0.123
}