Plasma GitLab Archive
Projects Blog Knowledge

Module Mapred_sorters.Hex_asc


module Hex_asc: sig .. end
Exports a hash and cmp function for Mapred_sorters.generic_sorter. The functions are defined so that the records are sorted in an ascending way by key. The key is interpreted as hex integer (digits 0 to 9, a to f, A to F, possibly prefixed by + or -). Characters violating the hex syntax are silently ignored. (Note that the integer range is not restricted!)

val hash : string -> int -> int -> int
val cmp : string -> int -> int -> string -> int -> int -> int
This web site is published by Informatikbüro Gerd Stolpmann
Powered by Caml