background preloader

F# resources

Facebook Twitter

The basic syntax of F# – keywords and constructs. This entry is part of "The Basic Syntax of F#" series: I have written lots of blog entries about F#, but I haven’t yet described the basic syntax of the language! So today I’ll try to remedy that, describing about a dozen keywords/syntactic-forms that you will most commonly encounter when reading F# code. This blog entry won’t cover all the syntax, but it covers perhaps the most common 75% or so. Today I will also intentionally err on the side of simplicity, at the expense of total accuracy. #light Some F# files start with #light and this just explicitly enables the ‘lightweight syntax’ option.

Comments There are two kinds of comments in F#, seen here: // a one-line comment (* a multi-line comment (* these can nest *) *) "open" a namespace The "open" keyword is used to open a namespace or module. // must fully qualify the name System.Console System.Console.WriteLine("Hello, world! ") // after opening the namespace, don’t need to open System Console.WriteLine("Hello, world!

") Lambdas are "fun" expr3. ZachBray/FunScript. Formatting F# source code for the Web. F# for fun and profit. F# Language Reference. Copy a directory of files. F# in 20 Minutes - Part I - Chris Smith's completely unique view. Edit: If you are interested in learning F#, let me take the opportunity to provide a shameless plug for my book Programming F#. Edit: Updated for the September CTP. Edit: While I certainly encourage you to read my blog, there is a great video we did for PDC titled An Introduction to Microsoft F# at With the September CTP hot off the presses, I figured it was time to write a concise, 20-minute introduction to F#.

The goal isn't to teach F#, but rather give a quick overview of the language and some of the things you can do with it. Part I - A slow introduction to F#, explaining your first program Part II – A brisk overview of the foundational types and concepts in F# Part III – A quick sampling into advanced topics So if you're interested in seeing what the fuss is all about, the read on. F# is a functional programming language built on .NET.

But just because you can write code in a new language doesn't mean you should. Getting Started Language Basics.

Videos

Ginko Solutions - F# Video Tutorials. All courses authored and hosted by TutorialGenius.com are either free to view, or contain a number of viewable tutorials without purchase. We charge a low price for all our courses and use the best production facilities available to us, giving you a pleasant viewing experience. By purchasing this course, you are entitled to the following benefits and offers: Includes all instructor exercise files Includes a Course Viewer compatible with all operating systems Includes a non-profit licence for businesses, students and teachers FREE Online delivery!

A preview of the course viewing utility. Compile a "Hello, world" program. F# Programming. Contents[edit] Preface - About this book and its authors.Introduction - Introducing the F# Programming Language. F# Basics[edit] This section is suitable for complete beginners to F# and Functional Programming in general. Getting Set Up - Installing F# on Windows, Linux and Mac.Basic Concepts - A lightweight crash course in functional programming concepts.

Working With Functions[edit] F# is a functional programming language. Not surprisingly, functions are a big part of the language, and mastering them is the first step to becoming an effective F# developer. Declaring Values and Functions - This article will show you how to declare simple functions, how to use type inference, and how to read F#'s 'arrow' notation.Pattern Matching Basics - Pattern matching is used for control flow. Immutable Data Structures[edit] "Data structure" is a fancy word which refers to anything that helps programmers group and represent related values in useful, logical units. Imperative Programming[edit] F# Tools[edit] Articles/fsharp-i-introduction/article.pdf. Technology Podcast - Why F#? with Richard Minerich and Phillip Trelford. Real World Functional Programming. Robert Pickering's F# Resources. A list of F# related stuff I've been involved with.

Beginning F# - Chapter 3: Functional Programming Free chapter of "Beginning F#" my book. Download the pdf or view in google docs. All the examples from the book can be found on codeplex. Functional NHibernate A layer on top of NHibernate to allow users to create "code first" mappings in F#. PicoMvc A thin veneer of F#ness arround several different frameworks to make a light weight Mvc framework.

F# Raven Db Tools Help using RavenDB from F# (and Newtonsoft.Json) log4f A thin veneer of F#ness arround log4net Twit Memento. Try F# F# Programming - Build MVVM Applications in F# Despite being a newcomer to the Visual Studio family, F# has already helped many .NET developers discover the power of functional programming. F# has a strong, growing reputation for its ability to simplify complicated problems like parallel and asynchronous programming, data processing and financial modeling. However, that doesn’t mean that F# is a niche language; it’s also great for solving everyday problems.

In this article, you’ll learn how to use F# to build practical Silverlight and Windows Presentation Foundation (WPF) Model-View-ViewModel (MVVM) applications. You’ll see how the same concepts that make F# great for simplifying complicated algorithms can also be used to reduce the ceremony around your view models. You’ll also see how the well-publicized asynchronous workflows in F# can be applied in a GUI setting. Finally, I’ll cover two common approaches for structuring MVVM applications in F#, as well as the strengths and weaknesses of each approach. Reducing Ceremony To this: