创建list方法总结

版权声明:本文为博主原创文章,未经博主同意不得转载。 https://blog.csdn.net/sheismylife/article/details/28878593

构建一个list

注意要标记不要求值。比方用‘ 或者list

> (list "a" "b" "c")
("a" "b" "c")

或者

> '("a" "b" "c")
("a" "b" "c")


设置一个空list

(set 'my-list '())


用函数參数构建一个list

(define-macro (location-file-based-on-modified-time dir-path from-seconds to-seconds)
  (println (list from-seconds to-seconds))
调用代码例如以下:

(FILE:location-file-based-on-modified-time "/home/dean/Videos/" 1409496931 1409496931)
结果:

(1409496931 1409496931)




原文地址:https://www.cnblogs.com/ldxsuanfa/p/9933424.html