adix/metab

  Source   Edit

This module provides an easy way to do compile-time switched impl swaps for various table/set reprs with various compile-time switched defaults. You should really just learn how to use LPTabz[..] directly, though.

Types

Set[K] = LPTabz[K, void, void, 0]
  Source   Edit
Tab[K; V] = LPTabz[K, V, void, 0]
  Source   Edit

Procs

proc initSet[K](sz = lpInitialSize; numer = lpNumer; denom = lpDenom;
                minFree = lpMinFree; growPow2 = lpGrowPow2; rehash = rDefault;
                robinHood = rhDefault): Set[K] {.inline.}
  Source   Edit
proc initTab[K, V](sz = lpInitialSize; numer = lpNumer; denom = lpDenom;
                   minFree = lpMinFree; growPow2 = lpGrowPow2;
                   rehash = rDefault; robinHood = rhDefault): Tab[K, V] {.inline.}
  Source   Edit
proc rightSz(x: Natural): int {.inline, ...deprecated: "Only identity now",
                                raises: [], tags: [].}
Deprecated: Only identity now
  Source   Edit
proc toSet[K](keys: openArray[K]; dups = false): Set[K]
  Source   Edit
proc toTab[K, V](pairs: openArray[(K, V)]; dups = false): Tab[K, V]
  Source   Edit