JanetDocsPlaygroundI'm feeling luckyGitHub sign in

table/new



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

    (table/new capacity)

    Creates a new empty table with pre-allocated memory for `capacity` 
    entries. This means that if one knows the number of entries going 
    into a table on creation, extra memory allocation can be avoided. 
    Returns the new table.


1 exampleSign in to add an example
Loading...
(table/new 2)
# => @{}
sogaiuPlayground