What is the best way to map a list and then call a function that potentially errors from within?
e.g.
try mentions =
map
|> get_field_safe(
dyn_atom("mentions"),
dynamic.list(dynamic.map(dynamic.dynamic, dynamic.dynamic)),
)
|> list.map(fn(user_map) {
try user_cast = user_map
|> user.from_map
user_cast
})
