Yan Cui's blog articles

0
comment
on 8/21/2012 5:54 PM
Since I’m liking git more and more by the day, with tools such as SmartGit and GitFlow making the task of managing even a complex branching model a relatively easy task, I’ve decided to move my Simple Speed Tester project over to github! Simple Speed Tester is a very simple framework I wrote to help [...]
>> Read the full article
.
0
comment
on 8/15/2012 2:35 PM
Found a useful little snippet that converts a C# dictionary to F#’s map which uses the built-in KeyValue active pattern:
>> Read the full article
.
0
comment
on 8/14/2012 4:49 PM
I spent the last couple of nights and put together a small BERT serializer for .Net called Filbert.   What’s BERT? BERT (Binary ERlang Term) is a binary format based on Erlang’s binary serialization format (as used by erlang:term_to_binary/1) but supports a couple of complex types such as boolean, dictionary and time, in additional to [...]
>> Read the full article
.
0
comment
on 8/10/2012 3:10 PM
In C#, you can define an explicit operator for your type using the explicit keyword: In F#, this will look something like this:
>> Read the full article
.
0
comment
on 8/9/2012 1:01 AM
You can specify a function which can take in a numeric value with a generic unit of measure easily enough: Similarly, you can also specify a discriminated union whose clauses can be of a numeric value with a generic unit of measure, like this:
>> 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