Re: How to pin down a bug in Rakudo?

2017-05-24 Thread Richard Hainsworth
Ah !!! I had read about lazy and eager, but not appreciated what effect it might have. So the answer for my Tarjan module, which assumes a static network, is to replace '.sort' with '.eager' . However, ... the point at which I was getting an error in the modules was the following code

Re: How to pin down a bug in Rakudo?

2017-05-24 Thread Timo Paulssen
Have you considered the effects of lazy evaluation for the hash's values method? .sort will eagerly evaluate the whole .values list (i.e. snapshot it) while iterating over it will include added keys and such.