NamedTuple abstract type is a convenient immutable data structure that allows its elements to be accessed by name and by index. A typical way of thinking about them is that they are tuples with optional name information attached to data slots. However, there is one important distinction between these two types. While tuples are covariant, named tuples are invariant. In other words,
NamedTuple, in terms of subtyping, behaves like any other
struct type. This has important consequences for the method dispatch mechanism.
In the GitHub repository for this recipe you will find the
commands.txt file that contains the presented sequence of shell and Julia commands.
Now open your favorite terminal to execute commands.