Go to file
2021-08-26 21:25:39 -06:00
gg gg: rename Walk to Iter, and implement Disjoin 2018-06-07 02:21:44 +00:00
gim gim: move view code into its own package 2018-06-08 02:04:27 +00:00
lexer get rid of pipe, sorry pipe 2016-07-28 16:23:06 -06:00
sandbox Remove a bunch of old code, update the README 2021-08-26 21:25:39 -06:00
.gitignore gitignore 2016-08-07 09:06:36 -06:00
README.md Remove a bunch of old code, update the README 2021-08-26 21:25:39 -06:00

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)