JanetDocsI'm feeling luckyGithub sign in

tuple



    cfunction

    (tuple & items)
    
    Creates a new tuple that contains items. Returns the new tuple.


2 examplesSign in to add an example
Loading...
[1 2 3]                  # => (1 2 3)
(tuple 1 2 3)            # => (1 2 3)
(tuple (splice [1 2 3])  # => (1 2 3)
(tuple ;[1 2 3])         # => (1 2 3)
cellularmitosis
(tuple 1 2.3 :a "foo" true nil [] {} (fn []))
# =>  (1 2.3 :a "foo" true nil () {} <function 0x7FB2A3D030B0>)
cellularmitosis