Examples · learn/03-functions · 81 of 339
arrow
tin run examples/learn/03-functions/arrow.tinfn square(x: int): int => x * x
fn greeting(name: string): string => "Hello, {name}!"
fn main() {
print(square(12))
print(greeting("Ada"))
} Examples · learn/03-functions · 81 of 339
tin run examples/learn/03-functions/arrow.tinfn square(x: int): int => x * x
fn greeting(name: string): string => "Hello, {name}!"
fn main() {
print(square(12))
print(greeting("Ada"))
}