다양한 Javascript Library들 중에, prototype.js와 dojo는 일하면서 사용해 볼 기회가 있었지만, jQuery는 사용해보지 못했었습니다. 남의 떡이 커보이는 것일 수 있겠습니다만, jQuery가 왠지 모르게 좋아보이더라고요. 이번에 자바스크립트 라이브러리들을 비교해 .....
define make-table same-key? let local-table list '*table* define lookup key let record assoc key cdr local-table if record cdr record #f define assoc key records cond null? records #f same-key? key caar records car records else as.....
(define q1 (make-queue))
(insert-queue! q1 a> ((a) a)
(insert-queue! q1 b> ((a b) b)
(delete-queue! q1> ((b) b)
(delete-queue! q1() b)
define print-q.....
Procedure objects in the global frame.
Result of evaluating (define x (cons 1 2)).
Result of evaluating (define z (cons x x)).
Result of evaluating (s.....
define cycle? x define iter slow fast cond or null? slow null? fast #f eq? slow fast #t else if or null? cdr slow null? cddr fast #f iter cdr slow cddr fast if or null? x null? cdr x #f iter x cdr x I think the very clever idea me.....
SICP 스터디를 다녀왔습니다. SICP는 일단 우선순위에서 밀려서 한구석에 놓여 있습니다. 언젠가 봐야지 하는데 그게 언제가 될지는 모르겠군요. ^^ 이번 모임 발표는 CoMK!D님이 수고해주셨습니다. 유닛테스트에 관해서 발표하셨네요. 발표자료가 단순하면서도 .....
define count-pairs x let nodes-checked ' define check item set! nodes-checked cons item nodes-checked define checked? item memq item nodes-checked define iter x if not pair? x 0 if checked? car x + iter car x iter cdr x begin chec.....
The count-pair procedure returns 3.
The count-pair procedure returns 4.
The count-pair procedure return 7.
The count-pair procedure never returns at a.....
Solution)
Lists x: (a b) and y: (c d).
Effect of (define z (append x y))
So, the first is (b).
Effect of (define w (append! x y))
The second is (b c.....
이번에는 2시간짜리, 짧고 굵은 모임이었습니다. 역시 대장이신 지아님과 컴키드님, GSong님, 솔리드원님, 꼬니님, 그리고 저 D군 이렇게 여섯명이 모였습니다. 지아님, 컴키드님과는 좀 일찍 만나서 점심을 같이 먹었고, 다른 분들은 토즈로 바로 오셨네요. 사보.....
Result of defining make-account in the global environment.
Result of evaluating (define acc (make-account 50))
Environments created by applying ((acc .....
Result of defining make-account in the global environment.
Result of evaluating (define acc (make-account 50))
Environments created by applying ((acc .....