2023-01-22 01:34:57 +00:00
|
|
|
import type {Signature} from '../interfaces/type.js'
|
2023-10-20 16:05:02 +00:00
|
|
|
import {$reflectGen, CONCRETE} from '../interfaces/type.js'
|
|
|
|
import {$$typeToString} from 'ts-macros'
|
2023-10-17 22:02:18 +00:00
|
|
|
export const isReal = (): Signature<'isReal', number> => (a) => true
|
|
|
|
export const isSquare = (): Signature<'isSquare', number> => (a) => a >= 0
|
|
|
|
|
2023-10-20 16:05:02 +00:00
|
|
|
export interface GenericImplementations<T> {
|
|
|
|
kilroy: "was here"
|
|
|
|
}
|
|
|
|
|
|
|
|
$reflectGen!(CONCRETE, [isReal, isSquare])
|