N.B. this is unrelated to the concept of bindings in Silverlight and WPF. One of my aha moments in learning F# occurred while I was reading Real World Functional Programming . Specifically, it was when the meaning of the let keyword really clicked. Before I explain, here are couple of samples: let x...
If you are new to this series, start here . Before I move on to the two remaining items on my list (pattern matching and memoization), I’d like to take a brief excursion and talk about about Linq in C#. I never said it explicitly, but I have been writing this series for C# developers. I do plan to show...
In the first port in this series , I provided a list of concepts that I found to be characteristic of functional languages. We’ve talked bout the first four so far. First Class Functions Higher Order Functions Pure Functions Currying or Partial Application Covered in the 2nd post. Recursion Pattern Matching...
In my last post , I provided a list of concepts that I found to be characteristic of functional languages. We’ve talked bout the first three so far. First Class Functions Higher Order Functions Pure Functions Currying or Partial Application Recursion Pattern Matching Memoization Currying Updated based...
Disclaimer: I’m still pretty green with functional programming. This is me working out my own understanding. Wikipedia defines Functional Programming (FP) this way: “functional programming is a programming paradigm that treats computations as the evaluation of mathematical functions and avoids state...
There is a problem on the Euler project, www.projecteuler.net , which asks to find the sum of all values under a given number. Problems on the Euler project have a range of solutions, where at least one solution has a runtime of under 1 minute. A popular, time efficient algorithm that finds all primes...
Today I was reading an article in The Onion, Conquerors You May Have Missed , and noticed that the number for the ant looked like it might be a big old prime, or at least have a large prime divisor. (For reference, the ant is # 43,168,974,563,247.) There are a number of algorithms for finding this answer...
My article on programming REST services with F# and WCF went up at InformIT. Please go read it! http://www.informit.com/articles/article.aspx?p=1394625
Over at The Daily WTF , they’ve started posting programming puzzles. The latest one is a puzzle where a set of locker doors are toggled, starting from the closed state, to the open state. Starting at a step size of 1 and stopping at a step size equal to the number of lockers, one toggles each door...