When we use scaleson an mtg, we get the following error:
ERROR: MethodError: no method matching iterate(::Nothing)
This is because we traverse the mtg with the mutating version (traverse!), but pipe the returned value into unique. We shouldn't pipe the value because this version doesn't return anything (or more precisely, it returns nothing).
When we use
scales
on an mtg, we get the following error:This is because we traverse the mtg with the mutating version (
traverse!
), but pipe the returned value intounique
. We shouldn't pipe the value because this version doesn't return anything (or more precisely, it returnsnothing
).