Glen Whitney
536656bfe8
Implements a totally simplistic "poortf" mutable typed function and a picomath instance generator, as well as the very beginnings of a number type and one generic function and a default full picomath instance. Also provides some tests which serve as usage examples.
13 lines
358 B
JavaScript
13 lines
358 B
JavaScript
import createNumber from './number.js'
|
|
import createAdd from './add.js'
|
|
import createNegate from './negate.js'
|
|
import createSubtract from '../generic/subtract.js'
|
|
|
|
export default function create(pmath) {
|
|
createNumber(pmath)
|
|
createAdd(pmath)
|
|
createNegate(pmath)
|
|
createSubtract(pmath)
|
|
// not sure if there's anything reasonable to return here
|
|
}
|