package irmin
 sectionYPositions = computeSectionYPositions($el), 10)"
  x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
  >
  
  
  Irmin, a distributed database that follows the same design principles as Git
Install
    
    dune-project
 Dependency
Authors
Maintainers
Sources
  
    
      irmin-3.11.0.tbz
    
    
        
    
  
  
  
    
  
  
    
  
        sha256=09996fbcc2c43e117a9bd8e9028c635e81cccb264d5e02d425ab8b06bbacdbdb
    
    
  sha512=0391a6bf7b94a1edd50a3a8df9e58961739fa78d7d689d61f56bc87144483bad2ee539df595c33d9d52c29b3458da5dddf3a73b5eb85e49c4667c26d2cd46be1
    
    
  doc/irmin.data/Irmin_data/Fixed_size_string_set/index.html
Module Irmin_data.Fixed_size_string_setSource
Mutable sets of strings with a common length.
The type of mutable sets of fixed-length strings.
Source
val create : 
  elt_length:int ->
  ?initial_slots:int ->
  ?hash:(elt -> int) ->
  ?hash_substring:(Bigstringaf.t -> off:int -> len:int -> int) ->
  ?null:string ->
  unit ->
  tcreate builds an empty set of fixed-length strings. The parameters are as follows:
- elt_length: the length of each element string in bytes;
- initial_slots: the minimum number of slots contained in the initial internal buffer (NOTE: the actual number of slots will be the least power of two greater than or equal to- initial_buffer. This is not the same as the number of elements that can fit inside the buffer, which also depends on the maximum load factor);
- hash/- hash_substring: functions to use for placing elements inside the internal buffer (given that the element is contained in a string or a bigstring respectively). The stored elements must have uniformly distributed- hashresults for good performance, and the two hash functions must be equivalent. Defaults to- Hashtbl.hash(and an equivalent function on substrings).
add t elt adds elt to the set t and returns `Ok if elt is not already a member of t, otherwise returns `Duplicate and leaves the hashset unchanged.
invariant f t checks the internal invariants of t and calls f on every element contained within. Exposed for testing.
 sectionYPositions = computeSectionYPositions($el), 10)"
  x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
  >