package core
Module List.AssocSource
Source
val compare :
('a -> 'a -> Base.Int.t) ->
('b -> 'b -> Base.Int.t) ->
('a, 'b) t ->
('a, 'b) t ->
Base.Int.tinclude module type of struct include Base.List.Assoc end
with type ('a, 'b) t := ('a, 'b) t
include Sexplib0.Sexpable.S2 with type ('a, 'b) t := ('a, 'b) t
Source
val t_of_sexp :
(Sexplib0.Sexp.t -> 'a) ->
(Sexplib0.Sexp.t -> 'b) ->
Sexplib0.Sexp.t ->
('a, 'b) tSource
val sexp_of_t :
('a -> Sexplib0.Sexp.t) ->
('b -> Sexplib0.Sexp.t) ->
('a, 'b) t ->
Sexplib0.Sexp.tSource
val t_sexp_grammar :
'a Sexplib0.Sexp_grammar.t ->
'b Sexplib0.Sexp_grammar.t ->
('a, 'b) t Sexplib0.Sexp_grammar.tBijectivity is not guaranteed because we allow a key to appear more than once.
Converts an association list with potential consecutive duplicate keys into an association list of (non-empty) lists with no (consecutive) duplicate keys. Any non-consecutive duplicate keys in the input will remain in the output.