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
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