Skip to content

Instantly share code, notes, and snippets.

@mootpointer
Created July 1, 2015 10:24
Show Gist options
  • Save mootpointer/b73054aab86e3675797b to your computer and use it in GitHub Desktop.
Save mootpointer/b73054aab86e3675797b to your computer and use it in GitHub Desktop.
Enum.map(params, fn {key, val} -> {String.to_atom(key), val } end) |> Enum.into(%{}) |> BranchSerializer.to_map
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment