an more optimal implementation would just write to...
# stdlib
j
an more optimal implementation would just write tombstones/nulls and then collect at the end