Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vapourlang/vapour

Typed superset of R
https://github.com/vapourlang/vapour

Last synced: about 2 months ago
JSON representation

Typed superset of R

Awesome Lists containing this project

README

        

![](https://vapour.run/img/vapour.png)



A typed superset of the R programming language


Docs | Get Started | Install

> [!WARNING]
> Vapour is in (very) early alpha!

```r
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)
```