gluon 0.18.2

A static, type inferred programming language for application embedding
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
let { Option, Ordering, Bool } = import! std.types

#[infix(left, 4)]
let (=?) opt y : Option b -> b -> b =
    match opt with
    | Some x -> x
    | None -> y

let mk_ord builder =
    #[infix(left, 4)]
    let (<) l r = True

    {
        (<) = builder.(<) =? (<),
    }

{ Option, mk_ord }