list
Code:
class List {
public:
byte length;
byte data[16];
void append(byte item) {
if (length < 16) data[length++] = item;
}
void remove(byte index) {
if (index >= length) return;
memmove(&data[index], &data[index+1], length - index - 1);
length--;
}
};
List l { .length = 3, .data = { 12, 82, 29 } };
l.remove(1);