Sign in

    lib

    Download zip
    Author
    Version
    0.1.2
    License
    Apache-2.0
    Last updated
    8 months ago
    Downloads
    32

    Dependencies

    #mizchi/moonbit_template

    fib

    fn fib(n : Int) -> Int64

    Calculate the n-th Fibonacci number.

    test {
    inspect(fib(10), content="89")
    }

    sum

    fn sum(data~ : Array[Int], start? : Int, length? : Int) -> Int

    data is a labelled argument without default value having type Array[Int] start is an optional labelled argument with default value 0 having type Int length is an optional labelled argument without default value having type Option[Int]

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io