Glen Whitney
fe54bc6004
Relational functions are added using templates, and existing generic functions are made more strict with them. Also a new built-in typeOf function is added, that automatically updates itself. Resolves #34. Co-authored-by: Glen Whitney <glen@studioinfinity.org> Reviewed-on: #41
8 lines
172 B
JavaScript
8 lines
172 B
JavaScript
export const mod = {
|
|
'T,T': ({
|
|
'subtract(T,T)': subT,
|
|
'multiply(T,T)': multT,
|
|
'quotient(T,T)': quotT
|
|
}) => (a,m) => subT(a, multT(m, quotT(a,m)))
|
|
}
|