JanetDocsPlaygroundI'm feeling luckyGitHub sign in

struct



    cfunction
    src/core/corelib.c on line 468, column 1

    (struct & kvs)

    Create a new struct from a sequence of key value pairs. kvs is a 
    sequence k1, v1, k2, v2, k3, v3, ... If kvs has an odd number of 
    elements, an error will be thrown. Returns the new struct.


1 exampleSign in to add an example
Loading...
(struct :a 1 :b 2) # => {:a 1 :b 2}
sogaiuPlayground