News for hackers. Stuff that matters.
Re:Why I prefer scheme to Haskell by more_original on Monday April 09, 2012 @07:59AM (#3816596)
Yes, printf is easy in F#. The following example works in F# and OCaml:

  let rec fact n =
     Printf.printf "%i\n" n;
     if n = 0 then 1 else n * (fact (n-1))

There are no comments on this comment yet.