Fix function name Square

This commit is contained in:
Jos de Jong 2023-09-14 19:44:15 +02:00
parent 1c48e57ea1
commit 5d256a468f

View File

@ -18,10 +18,10 @@ const create = createFactory<{
// These are our string based interfaces, which we can use both in typed-function and in TypeScript: // These are our string based interfaces, which we can use both in typed-function and in TypeScript:
const Multiply = 'multiply(number,number)=>number' const Multiply = 'multiply(number,number)=>number'
const Sqrt = 'sqrt(number)=>number' const Square = 'square(number)=>number'
const Zero = 'zero(number)=>number' const Zero = 'zero(number)=>number'
const createSquare = create(Sqrt, [Multiply, Zero],dep => const createSquare = create(Square, [Multiply, Zero], dep =>
x => dep.multiply(x, x) x => dep.multiply(x, x)
) )