Easier than that ...
{_, Shape} = {<0.206.0>, {rect, 10, 30}}.
However, you cannot create a process identifier from a literal, so the syntax above is incorrect, but try this in REPL ...
1> {_, Shape} = {self(), {rect, 10, 30}}.
{<0.31.0>,{rect,10,30}}
2> Shape.
{rect,10,30}
source
share