Return Types
Return types for Functions in Cyclone
If a function returns value, it MUST specify the return type beforehand, else the compiler will throw error.
function sum(a:int, b:int) : int{
return a + b
}Return types for Functions in Cyclone
If a function returns value, it MUST specify the return type beforehand, else the compiler will throw error.
function sum(a:int, b:int) : int{
return a + b
}