If I open up fsi and paste the following:
[1..10000000];;
[1..10000000];;
[1..10000000];;
[1..10000000];;
[1..10000000];;
[1..10000000];;
[1..10000000];;
[1..10000000];;
[1..10000000];;
I get:
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
Same thing if I prefix with let x =. It seems that top level references continue to be held, no matter how inaccessible they may be. Is there any way to clean these things up, without losing the convenience of being able to step through your data? Right now I'm simply restarting to clean up, but it's inconvenient.