You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 139 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Bug description
As I often look at the source code of the library whenever I seek
inspiration, I've found this little superfluous rec. Much ado about
nothing.
Cheers
-- Nicolas
list.ml
let rec partition p l =
^^^
let rec part yes no = function
| [] -> (rev yes, rev no)
| x :: l -> if p x then part (x :: yes) no l else part yes (x :: no) l
in
part [] [] l
The text was updated successfully, but these errors were encountered:
Original bug ID: 139
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
As I often look at the source code of the library whenever I seek
inspiration, I've found this little superfluous rec. Much ado about
nothing.
Cheers
-- Nicolas
list.ml
let rec partition p l =
^^^
let rec part yes no = function
| [] -> (rev yes, rev no)
| x :: l -> if p x then part (x :: yes) no l else part yes (x :: no) l
in
part [] [] l
The text was updated successfully, but these errors were encountered: