JanetDocsPlaygroundI'm feeling luckyGitHub sign in

/



    function

    (/ & xs)

    Returns the quotient of xs. If xs is empty, returns 1. If xs has 
    one value x, returns the reciprocal of x. Otherwise return the 
    first value of xs repeatedly divided by the remaining values.


4 examplesSign in to add an example
Loading...
(/ 0)
# => inf
sogaiuPlayground
(/ 1 2 3)
# => 0.166667
sogaiuPlayground
(/ 2)
# => 0.5
sogaiuPlayground
(/)
# => 1
sogaiuPlayground