JanetDocsI'm feeling luckyGithub sign in

*



    function

    (* & xs)
    
    Returns the product of all elements in xs. If xs is empty, returns 1.


1 exampleSign in to add an example
Loading...
(* 2 3)      # -> 6
(* 2 3.3)    # -> 6.6
(* 2.2 3.3)  # -> 7.26

(def pi 3.14159)
(* 2 pi)  # -> 6.28318

(* 2)  # -> 2
(*)    # -> 1

(* 2 3 4)             # -> 24
(apply * [2 3 4])     # -> 24
(* (splice [2 3 4]))  # -> 24
(* ;[2 3 4])          # -> 24
(def a [2 3 4])
(* ;a)                # -> 24
cellularmitosis