Slashdot Mirror


User: klovett

klovett's activity in the archive.

Stories
0
Comments
1
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 1

  1. Re:Lisp instead of Python on Game Scripting With Python · · Score: 1

    Not sure if anyone else finds this straight-forward, but it is how I would write the function in Scheme.

    (define (leap-year? year)
            (let ([0-% (lambda (n) (zero? (remainder year n)))])
                    (or (0-% 400) (and (not (0-% 100)) (0-% 4)))))