First, we will need to generate a new project. To do this in Elixir, we will run the command
mix new Cards
Now navigate to the lib
directory and let's look at the Cards.ex
file.
defmodule Cards do
@moduledoc """
Provides methods for creating and handling a deck of cards