ShorterMaps 2.2 released: ES6 map shorthand for Elixir
Tired of this? %{id: id, first_name: first_name, last_name: last_name, address_1: address_1, address_2: address_2, city: city, zip_code: zip_code}
ShorterMaps provides the map syntax you wish vanilla Elixir allowed:
~M{id, first_name, last_name, address_1, address_2, city, zip _code}
Version 2.2 is a tremendous upgrade in capability: ShorterMaps
now can work with expressions alongside elided keys, e.g.:
~M(id, first_name, last_name, full_name: “#{first_name} #{last_name}”)
Check it out on Github. Try it out with {:shorter_maps, “~> 2.0”},
Read next Continuous Integration with Semaphore