0
給出一個函數的骨架:方案高階FUNC
(define gen-hash-division-method (lambda (size)))
還有:
(define hash-1 (gen-hash-division-method 701))
我有編碼:
(define gen-hash-division-method
(lambda (size)
(lambda (w)
(modulo key(flip(w)) size))))
鍵(翻轉(W) )接收一個列表w並返回一個整數。
,並呼籲:
(hash-1 '(h e l l o))
我不斷收到此錯誤:
procedure application: expected procedure, given: (h e l l o) (no arguments)