fork download
  1. let rec qsort = function | [] -> []
  2. | h::t -> qsort (List.filter ((>=) h) t)
  3. @ [h] @
  4. qsort (List.filter ((<) h) t)
  5.  
  6. let r = new System.Random()
  7. [<EntryPoint>]
  8. let main() =
  9. let sample = List.init 300 (fun _-> r.Next(System.Int32.MaxValue))
  10. System.Console.WriteLine(qsort sample)
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/home/pMLX1Y/prog.fs(8,9): error FS0001: This expression was expected to have type
    string []    
but here has type
    unit    
stdout
Standard output is empty