Skip to content

Instantly share code, notes, and snippets.

@aaroncm
Created July 10, 2015 14:22
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 aaroncm/2eec12af864cbb06d36f to your computer and use it in GitHub Desktop.
Save aaroncm/2eec12af864cbb06d36f to your computer and use it in GitHub Desktop.
defmodule Insurance do
def build_keywords do
state = "UT"
keywords = ["Car Insurance", "Insurance Car"]
cities = ["Alpine", "Altamont", "Alton"]
for city <- cities do
for keyword <- keywords do
["#{keyword} #{city}", "#{keyword} #{city} #{state}"]
end
end |> List.flatten
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment