jiacai2050 / ideas

Think more
https://github.com/jiacai2050/ideas/issues
29 stars 2 forks source link

call/cc #32

Open jiacai2050 opened 8 years ago

jiacai2050 commented 8 years ago
(define (f return)
  (return 2)
  3)

(display (f (lambda (x) x))) ; displays 3

(display (call-with-current-continuation f)) ; displays 2
jiacai2050 commented 8 years ago

函数式编程特点总结