Closed bvssvni closed 8 years ago
For example:
0 point = ["(" .$:"x" "," .$:"y" ")"] 1 two_points = [point:"a" "," point:"b"] 2 dot = ["dot" "(" two_points .$(a.x * b.x + a.y * b.y):"sum" ")"]
This would compute the dot product of dot((1,2),(2,1)) and return "sum": 4.
dot((1,2),(2,1))
"sum": 4
The transformation could be evaluated externally.
One problem is that the meta language would become a lot more complicated.
For example:
This would compute the dot product of
dot((1,2),(2,1))
and return"sum": 4
.The transformation could be evaluated externally.