Working with data structures was straightforward and predictable in a days of Erlang. Most of the time…