Sunday, November 24, 2013

The second last class



I still can't believe that the course is ending soon, I still hope I can learn more from this course.Happy but sad.

We learned something really interesting this week, especially the Drracket part.

For example:

; flatten : list -> list
(define (flatten L)
(cond
[(cons? L) (apply append (map flatten L))]
[else (list L)]))

I found this was extremely difficult at first, and I had no idea about it. However, after a lot of practice, by doing the question steps by steps, I finally got the question.

I was also pretty happy about getting all quiz answers right. Hope I can do good on this course.

No comments:

Post a Comment