Onorio Catenacci's blog articles

0
comment
on 10/3/2013 5:00 PM
I do love the fact that F# (and functional programming in general) gives a developer the tools to make it easy to build simple code. I was hacking together a function to convert a DateTime to a Unix Time Stamp (for using with the Meetup Restful API).  This was my initial pass at it: (BTW […]
>> Read the full article
.
0
comment
on 10/1/2013 6:03 AM
A method in the Seq class can be applied to any kind of IEnumerable.  Consider the following code:
>> Read the full article
.
0
comment
on 8/26/2013 5:29 AM
It’s possible to use function composition and modify the type of value returned.  Consider the following equation: 1/4x2 I might encode the function to calculate this like so: let square x = x * x let recip x = 1.0/x  //If this is an int division it will always round to 0 if x is […]
>> Read the full article
.
0
comment
on 8/26/2013 5:05 AM
A few of us from Quicken had attended LambdaJam in Chicago.  By the way, it was a great conference–big kudos to Alex Miller. Anyway, at that conference we met Mathias Brandewinder, a Microsoft F# MVP from San Francisco.  Some of the guys started talking to Mathias about visiting us here in Motown to spread the […]
>> Read the full article
.
0
comment
on 8/19/2013 5:57 AM
Even though tuples, records and discriminated unions are reference types, they all have the built-in equality properties you would expect in a value type.  For example: > let a = (1,’a');; val a : int * char = (1, ‘a’) > let b = (1,’a');; val b : int * char = (1, ‘a’) > a […]
>> Read the full article
.
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper