Skip to content

Commit

Permalink
update function
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueCollarChris committed Oct 6, 2020
1 parent bbc8e47 commit e942d55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/recase/utils/enumerable.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ defmodule Recase.Enumerable do
Invoke fun for each keys of the enumerable and cast keys to atoms.
"""
@spec atomize_keys(Enumerable.t(), fun) :: Enumerable.t()
def atomize_keys(enumerable, fun \\ fn x -> x end)
def atomize_keys(enumerable),
do: atomize_keys(enumerable, fn x -> x end)

def atomize_keys(enumerable, fun) when is_map(enumerable) do
enumerable
Expand Down

0 comments on commit e942d55

Please sign in to comment.