I am fairly new to Elixir, and I have a small business problem. I am trying to localize data returned in an api call to my Phoenix middle tier. I am getting the user's browser languages and parsing those into a list. The order of the languages is relevant. I want to find the first matching language from the browser language list in my list of supported languages.
I could do this with nested loops and all that, but this seems like something Elixir could do more elegantly.