{:array, :integer} is the Ecto Type for the database, but is represented in Elixir as a list (see Ecto: Primitive Types) and lists don’t support indexing.
You could use Enum.at/2 to access a specific element in a list.
If you want to iterate over a list you should checkout the other functions inside the Enum module.






















