Browse by Tags

Related Posts

  • Nested sequences and palindrome numbers

    Problem 4 of Project Euler poses and impractical albeit intriguing problem: given all three digit numbers (100, 101, 102, ..., 998, 999), find the largest product of 2 of those numbers, where the product is a palindrome . For example, 580.085 is the product of two three-digit numbers (995 x 583) but...
    Posted to .NET at 9.400 ft above sea level (Weblog) by Edgar Sánchez on 04-22-2008, 12:00 AM
    Filed under: C#, Functional Programming, C# 3.0, Project Euler
  • Recursive lambdas and sequence aggregations

    The fifth problem at Project Euler proposes this nostalgic primary school exercise: find the smallest quantity that is evenly divisible by some numbers, the least common multiple of 1, 2, 3, ..., 20 to be precise. To begin with, let's remember the old arithmetic formula:   Where gcd is the greatest...
    Posted to .NET at 9.400 ft above sea level (Weblog) by Edgar Sánchez on 04-24-2008, 12:00 AM
    Filed under: C#, Functional Programming, Math, C# 3.0, Project Euler
  • The square of the sum vs. the sum of the squares

    The sixth Project Euler problem poses an exercise that, to me, offers no major hurdles: What is the difference between the sum of the squares and the square of the sums [of a sequence of natural numbers]? The functional C# solution is fairly easy to write and read:     1     ...
    Posted to .NET at 9.400 ft above sea level (Weblog) by Edgar Sánchez on 04-27-2008, 12:00 AM
    Filed under: C#, Functional Programming, C# 3.0, Project Euler
  • Which is the ten thousand first prime?

    Prime numbers have a good deal of practical applications (for example in cryptography) but let's face it, even if they would have none, they would still be the favorite toy of mathematicians . In Problem 7 of Project Euler , we are asked to find the 10001st element of the famous list, my approach was...
    Posted to .NET at 9.400 ft above sea level (Weblog) by Edgar Sánchez on 05-02-2008, 12:00 AM
    Filed under: C#, Functional Programming, LINQ, Math, C# 3.0, Project Euler
  • A cool way to find out whether a number is palindromic

    In this blog entry I proposed a solution to Problem 4 at Project Euler , a crucial element of the problem is to find out whether a number is a palindrome (909 is, 809 isn't), a bit out of laziness and a bit in order to reuse existing methods, I decided to verify the palindrome by converting the number...
    Posted to .NET at 9.400 ft above sea level (Weblog) by Edgar Sánchez on 05-06-2008, 12:00 AM
    Filed under: C#, Functional Programming, F#, C# 3.0, Project Euler
  • NoVA Code Camp Wrapup and Thoughts

    This past weekend was the Northern Virginia Code Camp in Reston, Virginia. There was a pretty good turnout for my two sessions which were the first two of the day. Unfortunately, I could not stay the whole day to attend some of the other sessions including fellow DC ALT.NET'er John Morales on NServiceBus...
    Posted to Matthew Podwysocki's Blog (Weblog) by podwysocki on 05-19-2008, 12:00 AM
    Filed under: User Groups, C#, F#, Functional Programming
  • Language Oriented Programming and Functional Unit Testing in F#

    As I've covered earlier , I'm very interested in the unit testing and behavior testing story in F# and functional programming. And as I've indicated earlier, I'm pretty fascinated by Domain Specific Languages (DSLs) as well in this regard. In the past, I've posted about some of the interesting things...
    Posted to Matthew Podwysocki's Blog (Weblog) by podwysocki on 06-04-2008, 12:00 AM
    Filed under: TDD/BDD, C#, F#, Frameworks, Functional Programming
  • Functional C# Revisited - Into the Great Void

    Lately, I've been doing some functional C# in both user groups and on this blog. As the C# language has evolved it has definitely taken some functional programming aspects, such as high order functions, extension methods, LINQ and so on. But with that, there is a cost. Functional programming with C#...
    Posted to Matthew Podwysocki's Blog (Weblog) by podwysocki on 06-06-2008, 12:00 AM
    Filed under: C#, F#, Functional Programming
  • Functional C# - Unfolding Lists

    In a previous post , I talked about how I thought C# has some significant drawbacks from being considered a more functional language. But, that wasn't to exclude it as a language altogether, as it has some pretty useful features. Lately, when I have been talking about F# in my sessions, many people wonder...
    Posted to Matthew Podwysocki's Blog (Weblog) by podwysocki on 06-12-2008, 12:00 AM
    Filed under: C#, F#, Functional Programming
  • Functional C# - Learn from F# and LINQ

    In the last installment of Functional C# , I covered a bit about creating delayed evaluation lists based upon unfolding constructs and generating lists from external resources. Those are some of the higher level high order functions you can do in C#, but let's look at a few more, plus those that are...
    Posted to Matthew Podwysocki's Blog (Weblog) by podwysocki on 06-16-2008, 12:00 AM
    Filed under: C#, F#, Functional Programming
Page 1 of 2 (19 items) 1 2 Next >
Microsoft Communities