Interfaces
An interface definition defines an API consisting of methods which can be invoked.
interface Api {
fun say_hello(name: string) -> string
}
Arguments can be made optional with a ?
behind the name of the argument.
An interface definition defines an API consisting of methods which can be invoked.
interface Api {
fun say_hello(name: string) -> string
}
Arguments can be made optional with a ?
behind the name of the argument.