We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Normally, reversing a sequence reverses it:
CL-USER> (fset:reverse (fset:seq 1 2 3 4)) #[ 4 3 2 1 ]
But if the elements of the sequence are characters, reverse fails:
reverse
CL-USER> (fset:reverse (fset:seq #\a #\b #\c #\d))
Results in the condition:
The value "abcd" is not of type FSET::WB-SEQ-TREE-NODE [Condition of type TYPE-ERROR] Backtrace: 0: (FSET::WB-SEQ-TREE-REVERSE "abcd") 1: ((:METHOD FSET:REVERSE (FSET:WB-SEQ)) #[ #\a #\b #\c #\d ]) [fast-method] 2: (SB-INT:SIMPLE-EVAL-IN-LEXENV (FSET:REVERSE (FSET:SEQ #\a #\b #\c #\d)) #<NULL-LEXENV>) 3: (EVAL (FSET:REVERSE (FSET:SEQ #\a #\b #\c #\d))) --more--
I'm using SBCL 2.1.1 with fset-20200610-git from Quicklisp, in case that makes a difference.
The text was updated successfully, but these errors were encountered:
Fix 'reverse' on char seqs (#40).
123695f
slburson
No branches or pull requests
Normally, reversing a sequence reverses it:
But if the elements of the sequence are characters,
reverse
fails:Results in the condition:
I'm using SBCL 2.1.1 with fset-20200610-git from Quicklisp, in case that makes a difference.
The text was updated successfully, but these errors were encountered: