Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* Sort module musings
@ 1999-03-24 16:29 James Hague
  1999-03-29 16:33 ` Xavier Leroy
  0 siblings, 1 reply; 4+ messages in thread
From: James Hague @ 1999-03-24 16:29 UTC (permalink / raw)
  To: caml-list

Does anyone else find that the Sort module to be in logical conflict with
the Array and List modules?  Both the Array and List modules contain
"map", "fold_left", and "fold_right", but there isn't a separate Map
module (for example, you use List.map instead of Map.list).

Following this pattern, Sort.list should be List.sort and Sort.array
should be Array.sort. 

I expect that this has come up before, and there is a good justification
for the Sort module, but I thought I would mention it from a new OCaml
user's perspective just in case. 

James Hague




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1999-03-30 17:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-03-24 16:29 Sort module musings James Hague
1999-03-29 16:33 ` Xavier Leroy
1999-03-29 20:30   ` Sys.command in Windows NT Stephanie Weirich
1999-03-30 15:37     ` Xavier Leroy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox