21 lines
316 B
C
21 lines
316 B
C
#include <stdio.h>
|
|
#define LAZY_IMPL
|
|
#include "../lazy.h"
|
|
|
|
int main() {
|
|
int arr[] = {0,1,2,3,4};
|
|
Lz_DA(int) da = {0};
|
|
lz_da_fill_from_array(&da, arr);
|
|
|
|
lz_da_foreach(int, x, da) {
|
|
printf("%d\n", *x);
|
|
}
|
|
|
|
lz_da_remove(da, 2);
|
|
|
|
lz_da_foreach(int, x, da) {
|
|
printf("%d\n", *x);
|
|
}
|
|
|
|
return 0;
|
|
}
|