I need to convert a map into a hash/md5.
map1 = %{k1: "val1", k2: "val2"} map2 = %{k2: "val2", k1: "val1"} Above both maps are same as order doesn't matter in map. How to create a hash from map so that their hash are same too ?
I need to do this for caching purposes.
https://stackoverflow.com/questions/65568086/how-to-create-a-hash-or-md5-from-a-map-in-elixir January 05, 2021 at 02:42AM
没有评论:
发表评论