Interpreter fails on Association with mixed type Values:
<|"a" -> 1, "b" -> "99%"|> // Map[Interpreter["Number" | "Percent"]]
MapThread::mptd: "Object !(Interpreter
PackageScopeparserSemantic[...
(long list of warnings)
<|"a" -> Replace[
Verbatim[Alternatives][
Interpreter`DependentTypes`PackagePrivate`a_] :>
Interpreter`DependentTypes`PackagePrivate`a, {0, \[Infinity]}],
"b" -> Quantity[99, "Percent"]|>
man pages say Alternative forms are tried in sequence. Without that sequence, of course the percent will not be parsed, but the 1 is.
<|"a" -> 1, "b" -> "99%"|> // Map[Interpreter["Number"]]
<|"a" -> 1, "b" ->Failure[...enter a valid number...]] |>
Prepend["Why does "]– alancalvitti Jun 08 '15 at 21:48