refactor: Switch to 'map-like object keyed by string and type vector' format

See https://code.studioinfinity.org/glen/nanomath/wiki/Item-Specifications.
  Also stubs out the TypeDispatcher, mocking the merge function, so we
  can see that all of the proper things will be added.

  Ready for initial implementation of the TypeDispatcher.
This commit is contained in:
Glen Whitney 2025-04-02 11:22:53 -07:00
parent 040ec377a1
commit 69ef928b6e
10 changed files with 84 additions and 15 deletions

5
src/number/helpers.js Normal file
View file

@ -0,0 +1,5 @@
import {Returns, onType} from '../core/helpers.js'
import {Number} from './Number.js'
export const plain = f => onType(
Array(f.length).fill(Number), Returns(Number, f))