vapour

command module
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

README

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)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
r

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL