Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Elixir's pipeline operator makes FP joyous. Here it is transforming an email address for Gravatar'ing
def gravatar_url(email, size) do
hash = email
|> String.strip
|> String.downcase
|> :erlang.md5
|> Base.encode16(case: :lower)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.