Post #3187357
2026-06-05 02:57 UTC
SICP lecture starting soon --> cytu.be/r/rowb1t
Replies (1)
-
@demha@comp.lain.la 2026-06-05 18:01
@rowb1t@social.xenofem.me decided to do 2.54 to keep the conversation going. code is absolute dogshit as i havent programmed scheme in a bit so beware. i know i could use a special form if for the case analysis for asking whether the lists are null? to compress the code but my brains to dull and stupid. if anyone one wants to improve it please do. (also i wont lie if i do this again i will probably make deliberately bad code to nerdsnipe / force conversation) (define (equal? x y) (cond ((and (null? x) (null? y)) #t) ((null? x) #f) ((null? y) #f) ((eq? (car x) (car y)) (equal? (cdr x) (cdr y))) (else #f)))