This is SBCL 2.4.6, an implementation of ANSI Common Lisp. More information about SBCL is avai...
源字符串是不会被更改的。然而,如果没有字符被更改,那么返回的结果将会是源字符串或者是它的一个复制,这取决于你选择的Common Lisp实现。”这意味着下面的例子中会会根据你选择的Common LIsp实现返回"BIG"或者是"BUG"。
stream-element-typestream-errorstream-error-streamstream-external-formatstreampstringstring/=string<string<=string=string>string>=string-capitalizestring-downcasestring-equalstring-greaterpstring-left-trimstring-lesspstring-not-equalstring-not-greaterpstring-not-lesspstringpstring-right-trimstring-streamstring...
This is SBCL 2.4.6, an implementation of ANSI Common Lisp. More information about SBCL is avai...
This function is like the Common Lisp pop function, but takes an element from the end of LIST instead of from the front of LIST. function shuffle (SEQ) Return a sequence with the same elements as the given sequence S, but in random order (shuffled). function slurp (FILENAME) Reads the...
When CL hash-tables are created by cl-hash-map element equality is cl:equal until such time as we can provide maps that support equal?. Fset sets and maps use FSET:EQUAL? which is similar to CL:EQUAL. If you call make-hash-table yourself, then equality is up to you. On thread safe...
(video (make-array (* +screen-height+ +screen-width+) :element-type 'fixnum) :type (simple-array fixnum (#.(* +screen-height+ +screen-width+))) :read-only t) ; ... )Here we already see a first concession to performance. We could have used a multidimensional array to make the...
你搜索的是read,而不是read-line,它读expression-wise(lisp解释器使用)。 (with-open-file (stream "test1.lisp") (loop for expr = (read stream nil 'eof) until (eq expr 'eof) collect expr));; ((+ 3 3) (LET ((N 3)) (+ N 1)) (LET ((N 4)) (+ N 1));; (DEFUN D (F) ...
(let* ((stream (open pathname :direction :input :element-type '(unsigned-byte 8))) (vector (make-array (file-size-to-vector-size stream) :element-type '(unsigned-byte 8))) (read-sequence vector stream)) Using a memory-mapped files has a result that is the same in that, like the...
Conversely, it is easy to show (by induction on the size of elements of [Math Processing Error]) that any element of [Math Processing Error] is a common subsumer of [Math Processing Error] w.r.t. [Math Processing Error]. Thus, a least common subsumer of [Math Processing Error] w.r...