Glen Whitney
66cbccfbbe
And use it to define negate and add for Complex numbers in a way that is independent of component types. Also add a bigint type and verify that pocomath will then handle Gaussian integers "for free".
4 lines
102 B
JavaScript
4 lines
102 B
JavaScript
import typed from 'typed-function'
|
|
|
|
typed.addType({name: 'bigint', test: b => typeof b === 'bigint'})
|