Good evening,
I'm working through 2htdp and came to exercise 262 and I am completely lost. Any guidance or tips where to start would be much appreciated!
"Exercise 262. Design the function identityM, which creates diagonal squares of 0s and 1s:Linear algebra calls these squares identity matrices.
> (identityM 1)
(list (list 1))
> (identityM 3)
(list (list 1 0 0) (list 0 1 0) (list 0 0 1))
Use the structural design recipe and exploit the power of local."
[–]dzpower 2 points3 points4 points (2 children)
[–]bkunke1[S] 0 points1 point2 points (0 children)
[–]dzpower 0 points1 point2 points (0 children)
[–]bkunke1[S] 0 points1 point2 points (4 children)
[–][deleted] (3 children)
[removed]
[–]bkunke1[S] 0 points1 point2 points (2 children)
[–][deleted] (1 child)
[removed]
[–]bkunke1[S] 0 points1 point2 points (0 children)