JanetDocsSourcePlaygroundTutorialsI'm Feeling luckyCommunityGitHub sign in

struct

core-api


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

    (struct & ksvs)

    Creates and returns a new struct from a variadic number of keys and 
    values `ksvs`, k1, v1, k2, v2, k3, v3, ... If `ksvs` has an odd 
    number of elements, an error will be thrown.


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