this article explains everything about advanced user defined functions in sublime text. The basic syntax, how to use them with mixed arguments, how to declare local variables and how to return values.
It also shows the differences between classic and advanced functions.
Read more »
this article explains the user defined function in KSP. At the end of this article there is also a comparison between classic and advanced functions with sublime text. Read more »