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
7 lines
131 B
JavaScript
7 lines
131 B
JavaScript
export const divide = {
|
|
'T,T': ({
|
|
'multiply(T,T)': multT,
|
|
'invert(T)': invT
|
|
}) => (x, y) => multT(x, invT(y))
|
|
}
|
|
|