chore: add a TODO

This commit is contained in:
Jos de Jong 2023-09-21 11:55:59 +02:00
parent 5d256a468f
commit 8c65387ef0

View File

@ -21,6 +21,9 @@ const Multiply = 'multiply(number,number)=>number'
const Square = 'square(number)=>number' const Square = 'square(number)=>number'
const Zero = 'zero(number)=>number' const Zero = 'zero(number)=>number'
// TODO: turn a generic string like `(T,T)=>T` into a concrete one like `(number,number)=>number`
// const MultiplyNumber = ResolveGeneric<'multiply', number>
const createSquare = create(Square, [Multiply, Zero], dep => const createSquare = create(Square, [Multiply, Zero], dep =>
x => dep.multiply(x, x) x => dep.multiply(x, x)
) )