insert method
dynamic
insert(
- dynamic insertIdx,
- dynamic val
Implementation
insert(insertIdx, val) {
upsert(insertIdx, val, (_, __) {
throw Exception("duplicate index");
});
}