I'm trying to execute sample code on the interactive shell from Armstrong's Erlang book. This is what the book says is the case:
1> Henry8 = #{ class => king, born => 1491, died => 1547 }. #{ born =>
1491, class=> king, died => 1547 }.
2> #{ born => B } = Henry8.
#{ born => 1491, class=> king, died => 1547 }.
However, this is what I'm getting on the shell, it seems the pattern matching is failing:
1> Henry8 = #{ class => king, born => 1491, died => 1547 }.
#{born => 1491,class => king,died => 1547}
2> #{ born => B } = Henry8.
* 1: illegal pattern