JanetDocsI'm feeling luckyGithub sign in

array/new-filled



    cfunction

    (array/new-filled count &opt value)
    
    Creates a new array of count elements, all set to value, which
    defaults to nil. Returns the new array.


1 exampleSign in to add an example
Loading...
(array/new-filled 3)     # => @[nil nil nil]
(array/new-filled 3 :a)  # => @[:a :a :a]
cellularmitosis