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.
_________________________________________________
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users