def start(x):
    def increment(y):
        return x + y
    return increment
클로저의 예, 출처 http://en.wikipedia.org/wiki/Closure_(computer_programming)
클로저를 어떻게 정의하면 좋을까? 여러가지로 조사해본 결과 가장 좋은 정의는 아래와 같다.

스코프에 규제받지 않는 코드 블록의 집합


+ Recent posts