源字符串是不会被更改的。然而,如果没有字符被更改,那么返回的结果将会是源字符串或者是它的一个复制,这取决于你选择的Common Lisp实现。”这意味着下面的例子中会会根据你选择的Common LIsp实现返回"BIG"或者是"BUG"。
离线版可以在LispWorks的FTP下载,链接ftp://ftp.lispworks.com/pub/software_tools/reference/HyperSpec-...
(list 'apple 'banana 'orange 'grape)) 上述代码中,我们使用了Lisp中的list函数来创建一个包含四个元素的列表。其中,这个列表包含了'apple'、'banana'、'orange'和'grape'四个元素。函数名为myList,调用该函数即可返回这个列表。 Lisp的优势在于其函数式编程的特性,...
12 Structure and The Type Syetem 总结一下前面学习过的lisp的基本类型,有number, symbol, cons, string, function, stream等,这些都是最基本的 数据类型.structures结构体是用户定义的数据类型,与其他语言类似 12.2 typep, type-of (typep 3 'number) -> t (typep 3 'integer) -> t (typep 'foo 'sy...
generic-functiongensymgentempgetget-decoded-timeget-dispatch-macro-charactergetfgethashget-internal-real-timeget-internal-run-timeget-macro-characterget-output-stream-stringget-propertiesget-setf-expansionget-universal-timegographic-char-phandler-bindhandler-casehash-tablehash-table-counthash-table-phash-...
returnsthedocumentationstringforthefunctionfoo. Forexample: (defundump-db() “Thisisatest.” (formatt"~{~{~a:~10t~a~%~}~%~}"*db*)) Break4[6]>(documentation'dump-db'function) “Thisisatest.” 4 DEFININGNEWFUNCTIONS ThebodyofaDEFUNconsistsofanynumberofLispexpressions. ...
base-lisp-image - base Docker image for Common Lisp projects with SBCL or CCL and the latest ASDF, Qlot and Roswell. archlinux-cl - Docker Arch Linux image with Common Lisp implementations (7 to this day). MIT.Foreign Function Interface, languages interopC...
Once again the handy replace function makes things easy.Clearing the Screen: CLSNow we can start implementing the graphics-related instructions. The first is the very simple CLS to clear the screen:(define-instruction op-cls () ;; CLS (fill video 0) (setf video-dirty t))...
MIT. docker-lisp-gamedev - A Docker image containing tools necessary for Common Lisp game development and deployment. Comes in Linux and Windows variety. Thoroughly tested via CI.Foreign Function Interface, languages interopC⭐ CFFI - Portable, easy-to-use C foreign function interface. Expat. ...
com/documentation/HyperSpec/Front/index.htm,离线版可以在LispWorks的FTP下载,链接ftp://ftp.lisp...