Writes a map to an IO device.
the device to dump to
function called for each key/value to confirm that it should be dumped
See Implementation
Writes a map to an IO device.