Tin

Examples · learn/03-functions · 81 of 339

arrow

examples/learn/03-functions/arrow.tintin run examples/learn/03-functions/arrow.tin
fn square(x: int): int => x * x
fn greeting(name: string): string => "Hello, {name}!"

fn main() {
  print(square(12))
  print(greeting("Ada"))
}