EdgeQL Tutorial

User-Defined Functions

Subtopics

It is possible to create a function that requires certain arguments to be named-only. This approach is useful if a function has many parameters that can be omitted. Let's create a function that adds a prefix and suffix to a string:

Input
Run
Output
Press the 'Run' button to evaluate the input

And now we can try it out:

Input
Run
Output
Press the 'Run' button to evaluate the input
Input
Run
Output
Press the 'Run' button to evaluate the input