Elektrine lite

← Feed

@sebffischer@mastodon.social

2026-05-01 05:43 UTC

@dodecadron@datasci.social the capacity of a vector is the true length of a vector. Like I might know that I have to allocate up until n elements, so I could do> x 0 x[n] n

Replies (1)

  • @dodecadron@datasci.social 2026-05-01 05:51

    @sebffischer@mastodon.social Ok, yeah. It would indeed be nice if you could pre reserve some space. I guess you could also do this with pure R, for example using `integer()` and keeping track of the actual size in an attribute, and implementing custom methods for `length` etc. Which now have to also do anyway.

    Open ##2959664