* (defparameter *my-string* (string "Groucho Marx")) *MY-STRING* * (aref *my-string* 3) #\u * (elt *my-string* 8) #\M 每一个字符串中的字符都有一个整数代码。认可代码的范围和Lisp能正确打印这些字符的能力取决以你选择的Lisp实现的字符集支持,比如ISO-8859-1或者Unicode。这里有些在UTF-...
This is SBCL 2.4.6, an implementation of ANSI Common Lisp. More information about SBCL is avai...
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...
(list 'apple 'banana 'orange 'grape)) 上述代码中,我们使用了Lisp中的list函数来创建一个包含四个元素的列表。其中,这个列表包含了'apple'、'banana'、'orange'和'grape'四个元素。函数名为myList,调用该函数即可返回这个列表。 Lisp的优势在于其函数式编程的特性,...
read-from-stringread-lineread-preserving-whitespaceread-sequencereadtablereadtable-casereadtableprealrealprealpartreducereinitialize-instanceremremfremhashremoveremove-duplicatesremove-ifremove-if-notremove-methodremproprename-filerename-packagereplacerequirerestrestartrestart-bindrestart-caserestart-namereturnreturn...
出处: http://www.defmacro.org/ramblings/lisp.html 简介 最初在web的某些角落偶然看到有人赞美Lisp...
⭐ pgloader - a data loading tool for PostgreSQL. PostgreSQL Licence. obligatory blog post: Why is pgloader so much faster? (hint: it was re-written from Python to Common Lisp)Data Structures👍 str - a modern, simple and consistent string manipulation library. MIT. 👍 FSet - A ...
Common_Lisp_高级编程技术 热度: PRACTICALCOMMONLISP PeterSeibel http://.gigamonkeys/book/ 1 CHAPTER5 FUNCTIONS 2 DEFININGNEWFUNCTIONS NormallyfunctionsaredefinedusingtheDEFUNmacro. ThebasicskeletonofDEFUN: (defunname(parameter*) "Optionaldocumentationstring." ...
also on Ultralisp.Why ?modernity, simplicity and discoverability: (str:trim s) instead of (string-trim '(#\Backspace #\Tab #\Linefeed #\Newline #\Vt #\Page #\Return #\Space #\Rubout #\Next-Line #\No-break_space) s)), or str:concat strings instead of an unusual format construct...
April - The APL programming language (a subset thereof) compiling to Common Lisp. Replace hundreds of lines of number-crunching code with a single line of APL. Apache2.C, C++C-mera - a source-to-source compiler that utilizes Lisp's macro system for meta programming of C-like languages. ...