JanetDocsSourcePlaygroundTutorialsI'm Feeling luckyCommunityGitHub sign in

mean

core-api


    function
    boot.janet on line 792, column 1

    (mean x)

    Returns the mean of the values of `x`. If empty, returns 
    `math/nan`.

    `x` can be a bytes, indexed, dictionary, fiber, or abstract type 
    with suitable `get` and `next` methods.


1 exampleSign in to add an example
Loading...
(mean [1 10 100])  # => 37
(mean [])          # => nan
cellularmitosisPlayground