JanetDocsSourcePlaygroundTutorialsI'm Feeling luckyCommunityGitHub sign in

table/to-struct

core-api


    cfunction
    src/core/table.c on line 385, column 1

    (table/to-struct tab &opt proto)

    Return a struct based on a table `tab`. If given, the optional 
    argument `proto` specifies the new struct's prototype. Note that if 
    `proto` is not specified, the new struct will not have a prototype.


1 exampleSign in to add an example
Loading...
(table/to-struct @{:a 1}) # => {:a 1}
swlkrPlayground