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

x/rimbu/proximity/main/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.0.0/proximity/main/index.ts";

Variables

Sensible default distance function, based on ===

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

Measures the distance between two values.

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