Forgot your password?
typodupeerror

Comment Re:Lisp instead of Python (Score 1) 186

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)))))

Slashdot Top Deals

"Most of us, when all is said and done, like what we like and make up reasons for it afterwards." -- Soren F. Petersen

Working...