如何从字典中循环键槽值对并获取每个项目的值?我想出了这一点,但我不断收到错误...在字典中循环显示值
defp processValues (ticket) do IO.inspect ticket.value # this doesnt work end
Repo.all(Ticket) #get all tickets |> Enum.group_by(&(&1.aggregate_id)) # group by id |> Dict.to_list # maybe not needed? |> Enum.map(&(processValues(&1))) # return processed tickets