Skip to content
New issue

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

Reversing a char-containing sequence doesn't work #40

Closed
asciipip opened this issue Jan 4, 2023 · 0 comments
Closed

Reversing a char-containing sequence doesn't work #40

asciipip opened this issue Jan 4, 2023 · 0 comments
Assignees
Milestone

Comments

@asciipip
Copy link

asciipip commented Jan 4, 2023

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:

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.

@slburson slburson self-assigned this May 17, 2024
@slburson slburson added this to the 1.4.0 milestone May 17, 2024
slburson added a commit that referenced this issue May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants