LLM's like Elixir for the same reason's I like Elixir. Read the function, look at the module, know the full context almost immediately, very little hidden.
Nothing special about Elixir in this but we do go a long way to encourage this, __using__ crimes notwithstanding.
Here is my take on why Elixir is the best language for AI: immutability, documentation, stability, and tooling for coding agents.
It builds on the recent study in which Elixir had the highest completion rate across models among 20 different languages.
Link in the thread below.