SICP-1.3.1节练习
SICP-1.3.3节练习

SICP-1.3.2节练习

lispor posted @ Feb 22, 2011 02:41:35 PM in Scheme with tags SICP , 1463 阅读

练习 1.34

 
练习 1.34:
Suppose we define the procedure
(define (f g)
  (g 2))
Then we have
(f square)
4
(f (lambda (z) (* z (+ z 1))))
6
What happens if we (perversely) ask the interpreter to evaluate the combination (f f)? Explain.
我的解答:
运行 (f f) 将会提示类型错误,如下:
scheme@(guile-user)> (f f)
Error: Wrong type to apply: 2

调用流程为:
(f f)
(f 2)
(2 2) ; 此处第一个 2 不是函数,报错
Error: Wrong type to apply: 2

 

cleaning services 说:
Feb 22, 2020 03:17:57 AM

Another rationality why people sometimes avoid using a store-bought cleaning product is oftentimes not for sure how often they have to have professional carpet cleaning service done additionally they don't can go about determining the best service with regard to needs. More often than not, they will only have to do competent cleaning now that every half a year to one per year, depending in the abrasion on that carpet and be familiar with traffic that carpets makes. However, if you can get pets, infants and increased traffic, then maintaining carpets every 3 months might be required.

seo service london 说:
Dec 11, 2023 03:44:48 AM

I have read this put up and if I may I desire to recommend you some interesting things or tips. Maybe you can write next articles regarding this article. I wish to learn more issues approximately it


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter