|
|
|
|
|
by ddevault
1967 days ago
|
|
Threw together an example (untested, with obvious errors) to give you an idea of what it could look like: https://paste.sr.ht/~sircmpwn/3122d4a27a8e5312462e2329bf7ed6... Actually managed to get it to exactly 2 dozen lines of code, not including the header, which isn't bad for an off-the-cuff remark. You'd naturally expand or shrink this with whatever subset of map functions you require, like key/value enumeration, object deletion, resizing, whatever. It depends on your use-case. I don't believe in generic code. |
|