FsDocs Playground 0.5.3

Edit this page

Tutorial 1

Do this

/// The Hello World of functional languages!
let rec factorial x = 
  if x = 0 then 1 
  else x * (factorial (x - 1))

let f10 = factorial 10
val factorial: x: int -> int
 The Hello World of functional languages!
val x: int
val f10: int