You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Brian Picciano f530cb481a rename Junction to Tuple, update syntax, rename Null to ZeroGraph 3 years ago
gg rename Junction to Tuple, update syntax, rename Null to ZeroGraph 3 years ago
gim rename Junction to Tuple, update syntax, rename Null to ZeroGraph 3 years ago
lexer rename Junction to Tuple, update syntax, rename Null to ZeroGraph 3 years ago
sandbox rename Junction to Tuple, update syntax, rename Null to ZeroGraph 3 years ago
.gitignore gitignore 8 years ago
README.md Remove a bunch of old code, update the README 3 years ago

README.md

Ginger

Fibonacci function in ginger:

fib {
    decr { out add(in, -1) }

    out {
        n 0(in),
        a 1(in),
        b 2(in),

        out if(
            zero?(n),
            a,
            recur(decr(n), b, add(a,b))
        )

    }(in, 0, 1)
}

Usage of the function to generate the 6th fibonnaci number:

fib(5)