Category Archives: F#

BIS Statistics F# Type Provider [alpha version]

The Bank for International Settlements (BIS) publishes statistics about the global financial system. The data is compiled in cooperation with central banks and other national authorities and provide information about financial stability. More information can be found on the BIS statistics website. Data exploration can be done either through the BIS Statistics Explorer, BIS Statistics… Read More »

Exploring World Bank Data with F#

As part of my F# journey, I came to the idea to explore data provided by the World Bank. The follow F# code fetches Diesel prices in USD per liter. These compontens have been used: WorldBank Type Provider This provider enables the access to the World Banks data in a type-safe way. The beauty about… Read More »

F# Journey: Course 3 – Discriminated Unions

It has been a long time since my last post here. One of my colleagues told me that the receptiveness of the human brain shrinks after reaching the 27 year. So it’s about time to learn F# before it’s too late! 🙂 In this post I want to present an calculator example with discriminated unions.… Read More »

F# Journey: Course 3 – Functions

Back to: F# Journey: Course 2- Type Inference The concept of a function exists is in F# too. However, it’s slightly different than in C#. A F# function has a name, list of parameters and a return value. The function itself is assigned to a value with the “let” keyword. The parameter types are inferred… Read More »

F# Journey: Course 2 – Type Inference

Back to: F# Journey: Course 1 – Immutable Values You probably know type inference already from C#. But in F# it’s like magic! You don’t have to define the type quite often. The compiler will automatically find out. Let’s start with some examples: let a = 1 // or let plus a b = a… Read More »

My F# Journey

After working 4-5 years mainly with object-oriented programming languages like C#, I thought it’s a good time to dive into other programming paradigms. For example: Functional programming -> F#! Based on the “Indeed Trends” (see at the bottom of this post) we see that the market is still not seeking a lot F# or Scala… Read More »

F# Journey: Course 1 – Immutable Values

Back to: F# Journey By default all variables in F# are immutable. Hence.. we can not call them “variables” anymore. The term “value” fits better. Here is a simple example of an immutable value: let val1 = 2 printfn "%d" val1 Now when you try to change the value like in the code below (line… Read More »