SET can set the value of symbols;
 
SETQ can set the value of variables;
 
SETF is a macro that will call different function depending on what was called as its first argument.
 
examples
 
(set (quote l) '(1 2 3))
(1 2 3)
 
 
(set l '(1 2 3))
Failure, l must be a symbol.
 
 
(set 'l '(1 2 3))
(1 2 3)
 
 
(setq l '(1 2 3))
(1 2 3)
 
 
(setq (car l) 10)
Failure.
 
 
(setf l '(1 2 3))
(1 2 3)
 
 
(setf (car l) 10)

 

l is (10 2 3)

相关文章:

  • 2021-12-26
  • 2022-01-23
  • 2021-12-28
  • 2021-11-13
  • 2021-09-13
  • 2022-01-02
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-20
  • 2022-12-23
  • 2021-09-06
  • 2021-09-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案