Common Lisp HyperSpec.
, Arrays ( ) , , . , .
. CLHS :
remove item sequence &key from-end test test-not start end count key
=> result-sequence
- . , :
(remove #\/ "/foo/")
()
(remove #\/ "/foo/" :start 2)
: #\a - . #\ node . . "/foo/".
REMOVE . . ? TEST EQL EQL item. IDENTITY .
, ? , :
(remove "/" "/abc/" :key #'string :test #'equal)
. "/" , EQUAL. . , "/abc/", .
:
(remove "/" "/abc/" :test (lambda (a b) (eql (aref a 0) b)))
"/" "/abc/". , , ( ).
, , :
(remove (aref "/" 0) "/abc/")
"/" , REMOVE EJ- - , EQL, #/.
? \foo ? Common Lisp |? FOO |.
( "foo" "afoob" ) , ( "foo" ) . , - . , "/" - , . , "/" #/ . - , - .
SUBSEQ . , :
(subseq "0123456" 1 5)
where 1 is the start and 5 is the end index.
CONCATENATE . , .
(concatenate 'string "abc" "123")
returns a new string with the strings "abc" and "123" appended.
, . STRING-TRIM, STRING-LEFT-TRIM STRING-RIGHT-TRIM.
, , , , .
.