branching and very basic merging of slots

This commit is contained in:
Joeri Exelmans 2025-04-17 09:19:41 +02:00
parent 614e6c0fdb
commit 3978f7f835
32 changed files with 684 additions and 420 deletions

9
typeclasses/show.js Normal file
View file

@ -0,0 +1,9 @@
import { cart2Str, NPoint2DCartesian, NPoint2DPolar, polar2Str } from "../lib/point.js";
import { Type } from "../primitives/types.js";
import { prettyT } from "../structures/types.js";
export const ShowInstances = new Map([
[Type , {show: prettyT}],
[NPoint2DCartesian, {show: cart2Str}],
[NPoint2DPolar , {show: polar2Str}],
]);