typocomath/src/numbers/predicate.ts

5 lines
181 B
TypeScript

import type {OpType} from '../interfaces/type.js'
export const isReal: OpType<'isReal', number> = (a) => true
export const isSquare: OpType<'isSquare', number> = (a) => a >= 0