Lindsey Kuper (lindseykuper) wrote,
Lindsey Kuper
lindseykuper

I schemed up a birthday gift for you, but it's open to interpretation

(define jes
(lambda ls
(letrec ((inc (lambda (n) (+ n 1)))
(sum (lambda (ls)
(if (null? ls)
0
(+ (car ls) (sum (cdr ls)))))))
(+ (car ls) (sum (map inc (cdr ls)))))))

(jes 5 1 9 9)

Subscribe

  • Some victories

    In the last two days: I sent a draft of my dissertation to my committee! There are some parts that aren't quite finished; it's a…

  • My dissertation abstract

    So I need to write an abstract for my dissertation. Anyone wanna glance over this and tell me what you think? If you suggest any edits, keep in…

  • What December's been like so far

    Alex oniugnip has already written about what December has been like for us so far. Here's the story from my perspective. At the…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 9 comments