How to check Elixir version

I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is undefined it only work with Enum.chunk

1 Like

Thats not exactly related to phoenix.

You can get the version of the installed elixir from the shell using elixir --version, or programmatically using System.version/0:

iex(1)> System.version
"1.5.0"
6 Likes

Also I went back until v1.1, there is a Enum.chunk_by/2 since at least that version.

1 Like

Thank you after restarted the server it magically work maybe there was a typo. sorry was very new to this