~repos /plum
git clone https://pyrossh.dev/repos/plum.git
A statically typed, imperative programming language inspired by rust, python
libs/std/result.plum
module std
enum Result = | Ok(a) | Err(b)
isOk() -> Bool = doc: "Checks whether the result is an `Ok` value" if Ok(_) == this True else if Err(_) = this False check: Ok("data").isOk() == True Err("no data").isOk() == False