gagolews / gagolews/DataStructures

Vector class

Open
#2 5 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C++
Stars
5
Forks
1
PR merge metrics
No merged PRs in 30d

Description

We should implement a vector class, using std:vector from C++, which would allow adding new items to a vector with amortized constant complexity (it would solve a "dynamically extending vector" problem).

The main question is: should it be a vector of any R objects (it would be like an R list), or maybe one type of objects (more like an R vector)?

And is there any way to implement operator [], like vector[5]? Or the only way is to make a function get_element(vector, 5) and set_element(vector, 5)?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.