真的只是一点小问题!

This commit is contained in:
_Karasu_ 2022-08-09 23:46:26 +08:00
parent f10bf55a2e
commit b8308cff5d
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
module Algorithm_FSharp.QuickSort
//
// partition : ('a bool) -> 'a list -> 'a list * 'a list
// partition : ('a -> bool) -> 'a list -> 'a list * 'a list
// pred
let rec partition pred lst =
match lst with //
@ -12,7 +12,7 @@ let rec partition pred lst =
| true -> head::matched, unmatched // matched
| false -> matched, head::unmatched // unmatched
// quicksort : 'T list -> 'T list
// quicksort : 'a list -> 'a list
// F#
let rec quicksort i =
match i with //