About Cacher
Web App
Download
Sign In
Sign Up
menu
Cacher is the code snippet organizer for pro developers
We empower you and your team to get more done, faster
Learn More
billc
11/30/2017 - 5:56 PM
share
Share
add_circle_outline
Save
Drop Nil Valued Keys in a Struct
StructToMapDropNils.ex
content_copy
file_download
my_map = for {k, v} <- Map.from_struct(my_struct), v != nil, into: %{}, do: {Atom.to_string(k), v}
clear