Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- asc=Association["a"->Association[1->1], "b"->Association["c"->Association[1->1]]]
- (* <|a-><|1->1|>,b-><|c-><|1->1|>|>|> *)
- DeleteCases[asc, _Association]
- (* <||> *)
- DeleteCases[asc, _Association, {2}]
- (* <|a-><|1->1|>,b-><||>|> *)
- DeleteCases[asc, _Association, {1,2}]
- (* <|a-><||>|> *)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement