5 ms·
You can access any element in your array in O(1). I think it is faster to loop through as well, but I'm not so sure about that. The drawback is that appending
by saikyun 5y ago
You can access any element in your array in O(1). I think it is faster to loop through as well, but I'm not so sure about that.
The drawback is that appending / removing elements at the beginning of the array is O(n).
When it comes to interacting with the collections I mostly use the loop / seq macros, which I believe are pretty similar to Common Lisp. Ofc you also have map / filter / reduce.