JanetDocsPlaygroundI'm feeling luckyGitHub sign in

array/ensure



    cfunction
    src/core/array.c on line 199, column 1

    (array/ensure arr capacity growth)

    Ensures that the memory backing the array is large enough for 
    `capacity` items at the given rate of growth. `capacity` and 
    `growth` must be integers. If the backing capacity is already 
    enough, then this function does nothing. Otherwise, the backing 
    memory will be reallocated so that there is enough space.


0 examplesSign in to add an example
Loading...