Adil Akhter's Thoughts
... about software development
Sign in
|
Join
Home
Contact
RSS
Atom
Comments RSS
Search
Tags
.Net2.0
Agile
C#
Cr_Documentor
Design
Domain-Specific Language
DSL Engineering
DSLs
F#
Global Software Development
Immutable
Language Composition
Operators
Recipe
Scrum
TDD
TestContext
Themes
Tool
Unit Testing
Vs2008
Sponsors
advertise here
News
Subscribe
Amazon.com Widgets
Navigation
Home
Blogs
Archives
June 2011 (3)
February 2011 (2)
December 2010 (2)
November 2008 (2)
May 2008 (1)
April 2008 (6)
Blogs I read
Scott Guthrie's Blog
Scott Hanselman's ComputerZen.com
Thoughts on QA and Engineering
Mads Troels Hansen's Blog
MartinFowler.com
Nikhil Kothari's Weblog
The Vertical Slice
Coding the Architecture
December 2010 - Posts
0
Comments
F# Symbolic Operators
by
Adil Akhter
This post is about how we can define a custom operator using F#. Defining a new operator in F# is very straightforward. For example, if one wants to define "!" as an operator to compute factorial of an integer, following is the way to do it...
Filed under:
F#
,
Operators
0
Comments
F# Recipe : Computing Length of a List
by
Adil Akhter
Code: let rec computeLength list = match list with | [] -> 0 | head::tail -> 1 + computeLength tail Result: > computeLength [1..10];; val it : int = 10 >
Filed under:
F#
,
Recipe
More Posts