Introduction to F#(Chapter 1 of Programming F#)_编程题目Introduction to F#(Chapter 1 of Programming F#)_F#_02F#
 1 open System
 2 
 3 [<EntryPoint>]
 4 let main(args : string[]) = 
 5     if args.Length <>2 then
 6         failwith "Error: Expected arguments <greeting> and <thing>"
 7     let greeting, thing = args.[0], args.[1]
 8     let timeOfDay = DateTime.Now.ToString("hh:mm tt")
 9     printfn "%s, %s, %s" greeting thing timeOfDay
10 
11     0