2022-08-30 19:36:44 +00:00
|
|
|
import Returns from '../core/Returns.mjs'
|
2022-07-25 18:56:12 +00:00
|
|
|
export * from './Types/number.mjs'
|
2022-07-22 20:49:14 +00:00
|
|
|
|
2022-08-30 19:36:44 +00:00
|
|
|
export const add = {
|
|
|
|
// Note the below assumes that all subtypes of number that will be defined
|
|
|
|
// are closed under addition!
|
2022-12-01 17:47:20 +00:00
|
|
|
'T:number,T': ({T}) => Returns(T, (m,n) => m+n)
|
2022-08-30 19:36:44 +00:00
|
|
|
}
|