nanomath/src/generic/config.js
Glen Whitney d3f2bc09b7
All checks were successful
/ test (pull_request) Successful in 17s
feat: config and approximate equality
Establishes a global config object for a TypeDispatcher instance, so far
  with just properties representing comparison tolerances. Begins a
  "relational" group of functions with basic approximate equality, and
  an initial primitive ordering comparison. Ensures that methods that
  depend on properties of `config` will be properly updated when those
  properties change.
2025-04-15 01:17:27 -07:00

5 lines
226 B
JavaScript

import {ImplementationsGenerator, onType} from '#core/helpers.js'
import {Passthru} from '#core/TypePatterns.js'
export const config = new ImplementationsGenerator(
() => onType(Passthru, {relTol: 1e-12, absTol: 1e-15}))