Heap Heap Array! Rotating Header Image

Posts under ‘Functional Programming’

Project Euler Problem 14

For the last 36 hours, off and on, I’ve been working on solutions to Project Euler problems, just to learn some F#. I started at the beginning and have been working my way up, as the difficulty increases. So far, I’ve solved problems 1-10, 14, 47, and 243. Problem 9 doesn’t really count as I [...]

Fledgling Forays in F#

So, to start learning F#, I searched for existing F# code. One of the first snippets I found was the sieve of Eratosthenes in many languages, including F#. Except the listed F# ‘sieve’ wasn’t; it did an exhaustive search from 2 to Math.Sqrt(int_of_float n) for every element n. I thought, “Even as a beginner, I [...]

Trying To Think Functionally

Lisp is worth learning for the profound enlightenment experience you will have when you finally get it; that experience will make you a better programmer for the rest of your days, even if you never actually use Lisp itself a lot. [Eric S. Raymond] I, for one, know that I’m only partially enlightened. When I [...]