Functions
Functions can be defined globally and as methods in entities:
function sayHello(to : String) : String {
return "Hello, " + to;
}
entity User {
name :: String
function showName() : String {
return sayHello(name + "!");
}
}
Functions can be defined globally and as methods in entities:
function sayHello(to : String) : String {
return "Hello, " + to;
}
entity User {
name :: String
function showName() : String {
return sayHello(name + "!");
}
}