Browse by Tags

All Tags » F# (RSS)

F# 1.9.4.19 runs out of the box with Mono in Linux

Don Syme just announced a minor update to the F# environment , minor may be but of great interest to a certain community: it so happens that at some point F# stopped working properly in Linux, a workaround was published (and it actually works, but you...

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...

New version of F# just released

In its way from research language to commercial language, Don Syme just announced that, silently, on May the 1st version 1.9.4.15 of F# was released .   This new version incorporates a number of specific enhancements (F# is now basically in stabilization...

Project Euler and functional C#

I think I already talked (a long time ago) about Project Euler : a set of problems, mainly math oriented, keen to be solved with a computer program. To be sure, it's not particularly deep math, but the problems posed go fairly quickly from really easy...

Tuples: an F# lightweight data structure

Maybe the best thing to do is to start by showing a few examples of tuples: let amigo = ( "Sebastián" , 7) let pair1 = (3, 2) let pair2 = (2, 5) let student = "Santiago" , "Monterrey" , 2007, true The first tuple ("Sebastián"...

F# doesn't need parenthesis in functions, or does it?

In a previous posting I mentioned that when you define a function in F# you don't need parenthesis surrounding the parameters, or commas separating them. So, this simple definitions are all valid: let negate a = -a   let add a b = a + b   let...

F# basic function definition syntax

In the comments to this post , Anon and Josh complain about the syntax of F#. On one hand, they've got a point: most programmers are used to notations similar to those of Visual Basic, C# or Java, and for them many of the syntactic details of F# will...

A better way of getting the average salary

Related to my post yesterday in which I tried to show an appealing business sample in F#, David Taylor commented that this: can't possibly be more appealing than this: var averageSalary = companyRoll.Average(e=>e.salary); David is using LINQ of course...

Visual Studio 2008 and F#

Once I downloaded and installed Visual Studio 2008 Team System in this laptop, one of the first things I did was to install F# to see how well it worked in the shiny new IDE. It worked without any hassle and to celebrate I wrote a typical business example...

F#: Going from academia and research to the commercial world

I think I've bored to death more than one acquaintance talking about functional programming , F# , and Haskell (even though I like to think that one or two entries managed to be interesting). Anyway, if out of curiosity somebody downloaded F# and toyed...
More Posts Next page »