Loading ...
Sorry, an error occurred while loading the content.

13896Re: "ocaml_beginners"::[] probably stupid question of the day

Expand Messages
  • Johan Mazel
    Jun 9 8:02 AM
      Because, you may have a comparison function that do not use every element
      of the type actually operate the comparison. For example, a record with an
      index and any kind of data where you want data to be ordered by index..

      2013/6/5 Francois Berenger <berenger@...>

      > **
      > Why do we have to provide the type + the comparison
      > fonction when we create a set?
      > Isn't the comparison function the only parameter
      > that should be needed to "specialize" a set?

      [Non-text portions of this message have been removed]
    • Show all 3 messages in this topic