concept to - do list in category elixir

appears as: to-do list, to-do lists, to-do list
Elixir in Action

This is an excerpt from Manning's book Elixir in Action.

The basic version of the to-do list will support the following features:

Listing 4.1 Initializing a to-do list (simple_todo.ex)
defmodule TodoList do
  def new(), do: %{}
  ...
end

Next you have to implement the add_entry/3 function. This function expects a to-do list (which you know is a map) and has to add the entry to the list under a given key (date). Of course, it’s possible that no entries for that date exist, so you have to cover that case as well. As it turns out, this can be done with a single call to the function Map.update/4.