「The Little Schemer」P.11 ~
- The Law of Eq?       
- The primitiive eq? takes tow arguments. Each must be a non-numeric atom.
 - 組み込み手続きeq?は二つの引数を取る。それぞれが数値以外のatomでなければならない。
 
 
| (eq? margarine butter)            ;; => #f  |      
| (eq? '() (strawberry))            ;; => #f  |      
- No answer      
- ()と(strawberry)はlistであるから
 
 - Gaucheでは・・・・      
- #f
 
 
- In practice, lists may be arguments of eq? Two lists are eq? if they are the same lists.
 - In practice, some numbers may be arguments of eq?
 
|           (eq? 'Harry 'Harry)              
 (eq? '(1 2 3) '())              
 (eq? 1 3)              
 (eq? 1 1)              
 (eq? '(1 2 3) '(1 2 3))              
 (eq? '() '())               |      
|                     (eq? 1 1)               
 (eq? '(1 2 3) '(1 2 3))               
 
 (eq? '() '())                |      
- ??? ↓       
- The Law of Eq?           
- The primitiive eq? takes tow arguments. Each must be a non-numeric atom.
 - 組み込み手続きeq?は二つの引数を取る。それぞれが数値以外のatomでなければならない。
 
 
 - The Law of Eq?           
 
0 件のコメント:
コメントを投稿