Skip to content

vapourlang/vapour

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8619f88 · Oct 30, 2024
Sep 15, 2024
Sep 25, 2024
Aug 13, 2024
Sep 14, 2024
Sep 15, 2024
Sep 17, 2024
Sep 17, 2024
Oct 1, 2024
Sep 25, 2024
Sep 17, 2024
Sep 25, 2024
Sep 17, 2024
Sep 25, 2024
Oct 30, 2024
Oct 1, 2024
Aug 6, 2024
Sep 8, 2024
Aug 13, 2024
Sep 8, 2024
Sep 17, 2024
Aug 10, 2024
Sep 17, 2024
Jun 27, 2024
Sep 17, 2024
Sep 17, 2024
Sep 17, 2024
Sep 17, 2024
Oct 2, 2024

Repository files navigation

A typed superset of the R programming language

Docs | Get Started | Install

Warning

Vapour is in (very) early alpha!

type person: object {
   age: int,
   name: char 
}

func create(name: char): person {
  return person(name = name)
}

@generic
func (p: any) set_age(age: int, ...: any): any

@default
func(p: any) set_age(age: int): null {
  stop("not implemented")
}

func(p: person) set_age(age: int): person {
  p$age = age
  return p
}

let john: person = create("John") |>
  set_age(36)