mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-08 02:10:36 -08:00
Unless specified, sequence functions must output a string of the same type as the input
This commit is contained in:
parent
4d6c3b1d64
commit
0e18c3237b
2 changed files with 4 additions and 0 deletions
|
|
@ -124,6 +124,9 @@ ECL 1.0:
|
|||
- Following functions fixed to work with Unicode strings: EQUAL, EQUALP,
|
||||
PARSE-INTEGER.
|
||||
|
||||
- Most functions dealing with sequences (REMOVE, DELETE, etc) would
|
||||
output a STRING even if the input was a BASE-STRING.
|
||||
|
||||
* Other visible changes:
|
||||
|
||||
- EXT:PROCESS-COMMAND-ARGS now allows for a default rule.
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@
|
|||
(defun seqtype (sequence)
|
||||
(declare (si::c-local))
|
||||
(cond ((listp sequence) 'list)
|
||||
((base-string-p sequence) 'base-string)
|
||||
((stringp sequence) 'string)
|
||||
((bit-vector-p sequence) 'bit-vector)
|
||||
((vectorp sequence) (list 'vector (array-element-type sequence)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue