![]() | ![]() | ![]() | counted-delete | ![]() |
| item sequence
&key from-end | [Function] |
Purpose
A version of delete
Package :gbbopen-tools
Module :gbbopen-tools
Arguments and values
item | An object | |
sequence | A proper sequence | |
from-end | A generalized boolean (default is nil ) | |
test | A
function designator specifying a function object of two
arguments that returns a generalized boolean (default is
#'eql | |
test-not | A function designator specifying a
function object of two arguments that returns a
generalized boolean (use of :test-not | |
start | Starting index into 0 )
| |
end | Ending index into nil , meaning
end of | |
count | An integer or nil (default is nil )
| |
key | A function designator specifying a function object
of one argument, or nil (default is nil )
| |
result-sequence | A sequence |
Returns
Two values:
nil
Description
Returns a sequence from which elements that satisfy the
test have been deleted. The supplied
Specifying a
See also
atomic-delete
delq
delq-one
Examples
> (counted-delete 'a '(a b c a b c)) (b c b c) 2 > (counted-delete #\a "abcabc") "bcbc" 2 > (counted-delete 'z '(a b c a b c)) (a b c a b c) 0 > (counted-delete #\a "abcabc" :from-end 't :count 1) "abcbc" 1 >
Note
This is what delete
The GBBopen Project
![]() | ![]() | ![]() | counted-delete | ![]() |