News for hackers. Stuff that matters.
Re:Tell HN: F# Rocks by shawndumas on Thursday August 04, 2011 @11:35AM (#2846385)
How 'bout this:

  /// Compute the highest-common-factor of two integers
  let rec hcf a b =                       // notice: 2   parameters separated by spaces
	if a=0 then b
	elif a<b then hcf a (b-a)        // elif = else if
	else hcf (a-b) b
	// note: function arguments are usually space separated
	// note: 'let rec' defines a recursive function

There are no comments on this comment yet.