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

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

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

Variables

Sensible default distance function, based on ===

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

Measures the distance between two values.

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