F# Bloggers

Blog articles of F# Bloggers

0
comment
on 12/23/2014 9:41 AM
This post is part of the F# advent calendar, which is filled with all sorts of other cool blog posts, be sure to check it out.  Thanks to Sergey Tihon for organising! It’s Christmas! Happy Christmas everyone!  I have the honour of the Christmas Day F# advent calendar post (Thanks Tomas, ha!).  I had a whole bunch of different ideas, and typically, I decided to choose the largest, most complicated one.  Because of this, there is a lot of code written in just a couple of evenings. It is for the most part, ba[...]
>> Read the full article
.
0
comment
on 12/21/2014 6:36 PM
The built-in .NET Join and Split methods for strings do not provide a way for escaping the separator. If the separator is already contained in the input strings before joining, the strings cannot be reproduced by splitting: open System let inputStrings = [| "Hello, world."; "How are you?" |] let separator = ", " let joinedResult = String.Join(separator, inputStrings) let reproducedStrings = joinedResult.Split([| separator |], StringSplitOptions.None) printfn "%A" inputStrings printfn "%A" reproducedStrings[...]
>> Read the full article
.
0
comment
on 12/21/2014 6:36 PM
The built-in .NET Join and Split methods for strings do not provide a way for escaping the separator. If the separator is already contained in the input strings before joining, the strings cannot be reproduced by splitting: open System let inputStrings = [| "Hello, world."; "How are you?" |] let separator = ", " let joinedResult = String.Join(separator, inputStrings) let reproducedStrings = joinedResult.Split([| separator |], StringSplitOptions.None) printfn "%A" inputStrings printfn "%A" reproducedString[...]
>> Read the full article
.
0
comment
on 12/20/2014 6:55 AM
This post is December 20th' part of the English F# Advent #fsAdvent series; make sure to also check out the Japanese series, which also packs the awesome! As I was going around Paris the other day, I ended up in the Concorde metro station. Instead of the standard issue white tiles, this station is decorated with the French constitution, rendered as a mosaic of letters. [Source: Wikipedia] My mind started wandering, and by some weird association, it reminded me of Calligrammes, a collection of poems [...]
>> Read the full article
.
0
comment
on 12/11/2014 5:53 PM
Code for this entry: here. In this first part, we started shamelessly plagiarizing creatively reproducing a Clojure monad that does a great job describing stochastically independent processes. After a few trials I became convinced, that the approach in the blog post mentioned above was indeed optimal: a “natural” approach of modelling an event as 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