Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rimbu/proximity/common/index.ts>DistanceFunction

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
namespace DistanceFunction
Re-export
import { DistanceFunction } from "https://deno.land/x/rimbu@1.1.0/proximity/common/index.ts";

Variables

Sensible default distance function, based on ===

type alias DistanceFunction
Re-export
import { type DistanceFunction } from "https://deno.land/x/rimbu@1.1.0/proximity/common/index.ts";

Measures the distance between two values.

definition: (one: T, another: T) => Distance