To generate a list of Fibonacci numbers, we created a generator class that emulates the behavior of the c# yield statement. We’ll expand on this generator in another blog to enable us to write LINQ methods, but for right now we’ll use if for a similar task, generate a list or primes.
When working through the project euler problems in visual basic we very quickly run into a limitation of the language, visual basic does not support iterators. Unfortunately, iterators probably won’t make it into the next version of vb either. So time to get our hands dirty and roll our own iterator support.
I’ve been looking for some little programs to work on in order to learn F#. Thankfully, I stumbled across Dustin Campbell’s blog, which led me to following site.
http://projecteuler.net
It’s really a lot of fun and a great way to learn F#. Dustin has been showing the solutions in F# and [...]