This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
var list = Enumerable.Range(-1000,2001).Reverse().ToList();
Action a1 = () => list.Sum().Dump();
Action a2 = () => { list.Sort(); list.Sum().Dump(); };
Parallel.Invoke(a1, a2);
view raw
mutating-state.cs
hosted with ❤ by
GitHub