# [racket] 27.1.3

I am having trouble changing the Sierpinski function to consume structures, instead of coordinates. I used the same function design for too-small as in 27.1.1, I edited each sub function used to consume triangles as well. When testing the new function with a triangle, and comparing it to previous functions the answer is the same.
(ie (=(somefunction a b c)(somefunction triangle)). My assumption in the final step of the Sierpinski function was to have the recursive call applied to a newly made triangle with the correct midpoints as the posns, I used (make-triangle p1 mp mp). I'm not quite sure what I have done wrong here. Thanks in advance for any help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20101111/22c82015/attachment.html>