incorporating dejaMoo: best of breed bull…

When I was a wee nipper

Do Not Fold, Spindle, or Mutilate

As a mere lamb, finding my CS feet...

   (defun has-list (lst)
     (if (null lst)
       nil
       (if (listp (car lst))
         T
         (has-list (cdr lst)))))
   

And today...

   (defun has-list (lst)
     (and (not (null lst))
       (or (listp (car lst))
         (has-list (cdr lst)))))
   

Let me explain:

I've just moved house. Ok, by just I mean 3 months ago! I haven't unpacked too much which tells me two things: a) I have a bunch of crap I don't need, and b) turns out there is no valid point b).

So in what little unpacking I have done, I found an old notebook from way back to when I took Ann Nicholson's IA course as an undergraduate. ASNI Common Lisp by Paul Graham was one of the required texts. (My memory is a little sketchy, but I think it was during that course that I first came across PG). Anyway, the old notebook also contains my answers to the end of chapter questions.

Reading your old code is a humbling, but fascinating experience.

Comments (1) § Posted by in on
AddThis Social Bookmark Button

Tweet Tweet

Stuffs

Thanks for dropping in.

This is the personal website of Cam MacRae. Any opinions expressed here are my entirely own, and have jack to do with my employer.

It's the product of a little elbow grease, the news.ycombinator noprocrast feature, and a healthy dose of Django.

A Django site.

Tags

  1. D (1)
  2. SOA (1)
  3. ajax (2)
  4. apollo (1)
  5. architecture (1)
  6. blogs (2)
  7. carsales (1)
  8. collaboration (1)
  9. css (1)
  10. django (9)
  11. duels (1)
  12. email (1)
  13. erlang (3)
  14. findability (1)
  15. flex (3)
  16. folksonomies (1)
  17. funny (2)
  18. geek (20)
  19. google (3)
  20. innovation (1)
  21. iphone (1)
  22. javascript (4)
  23. jython (1)
  24. life (5)
  25. lighttpd (1)
  26. lisp (1)
  27. mac (1)
  28. macbook (1)
  29. marketing (1)
  30. open-source (1)
  31. oracle (2)
  32. python (6)
  33. rails (2)
  34. ruby (1)
  35. silverlight (1)
  36. skitch (1)
  37. startups (4)
  38. tech (21)
  39. twitter (1)
  40. usability (1)
  41. web20 (6)
  42. work (3)
  43. yui (2)
ten1000miles.com | Aussie Blogs |  Feed

Creative Commons License This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 Unported License.