Open rexim opened 7 years ago
It doesn't have any significant side effects (except probably slightly higher memory consumption), so it's easier to reproduce that in the code.
Copy the following code to REPL:
import me.rexim.morganey.module._ { new Module(CanonicalPath("std.prelude")) .load() .map { bindings => bindings .map(_.variable.name) .groupBy(identity) .mapValues(_.length) } }
All binding counts are 1
1
Some bindings are repeated up to 6 times
6
Reproduction
It doesn't have any significant side effects (except probably slightly higher memory consumption), so it's easier to reproduce that in the code.
Copy the following code to REPL:
Expected
All binding counts are
1
Observed
Some bindings are repeated up to
6
times