Skip to content

Instantly share code, notes, and snippets.

@JayH5
Created April 5, 2018 10:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JayH5/357b1eb68d3299537a0fbc10d21bf463 to your computer and use it in GitHub Desktop.
Save JayH5/357b1eb68d3299537a0fbc10d21bf463 to your computer and use it in GitHub Desktop.
Elixir example: lookup key equivalents
word |> String.downcase() |> String.graphemes() |> Enum.sort() |> Enum.join()
Enum.join(Enum.sort(String.graphemes(String.downcase(word))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment