~repos /plum
git clone https://pyrossh.dev/repos/plum.git
A statically typed, imperative programming language inspired by rust, python
cmake.hs
struct Cat = val name: Str val age: Int
fn init(allocator: *Allocator) Cat = Cat { .name = Str.alloc(allocator) }
enum ReadError = | Eof | Closed
enum WriteError = | Eof | Closed
fn getTime(dt: DetermineTime) Int? = if dt == 123 then Some(dt) else None
fn compare(x: Int y: Int) -> Ordering = match | x > y = GT | x == y = EQ | x < y = LT
fn countThrows(n: Int) -> Array<Array<Int>> = do x <- 1 .. 6 y <- 1 .. 6 if x + y == n then [x, y] else empty
getTime() |> putLnStr |> Task.err
# for is a builder function which exposes continue/break methodsfor (items) \d -> if d == "5" then break() putLnStr(d)