export function hasValue<K, V, W=V>(x: Lists<K, V>, v: V, fc: CompareFunction<V|W> | null=null, fm: MapFunction<K, V, V|W> | null=null): boolean {
  if (!fc && !fm) return x[1].includes(v);
  return searchValue(x, v, fc, fm)!==undefined;
}