Delete multiple keys from Map

Hi @Sneha, you can chain multiple calls to delete, e.g.,

M.delete "ABD" (M.delete "XYZ" dataMap)

If you have a list, you can use foldl to delete all of them:

foldl (\acc key -> M.delete key acc) dataMap keysToDelete
2 Likes