2022-07-22 20:49:14 +00:00
|
|
|
export {Types} from './Types/Complex.mjs'
|
2022-07-19 16:52:16 +00:00
|
|
|
|
|
|
|
export const complex = {
|
2022-07-19 18:54:22 +00:00
|
|
|
/* Very permissive for sake of proof-of-concept; would be better to
|
|
|
|
* have a numeric/scalar type, e.g. by implementing subtypes in
|
|
|
|
* typed-function
|
|
|
|
*/
|
2022-07-23 05:06:48 +00:00
|
|
|
'any, any': {does: (x, y) => ({re: x, im: y})},
|
2022-07-19 18:54:22 +00:00
|
|
|
/* Take advantage of conversions in typed-function */
|
2022-07-23 05:06:48 +00:00
|
|
|
Complex: {does: z => z}
|
2022-07-19 16:52:16 +00:00
|
|
|
}
|