I see this function signature sometimes and can't find anything on it:
def handle("user:" <> id), do: Repo.get(User, id)
I am new to erlang/elixir so I assume this is some sort of pattern matching for user:1
and user:2
, but I haven't seen any articles or information about this specifically in the Elixir guides.
What exactly is going on here?