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

Support lists of lists #2

Closed
slyrus opened this issue Sep 30, 2020 · 3 comments
Closed

Support lists of lists #2

slyrus opened this issue Sep 30, 2020 · 3 comments

Comments

@slyrus
Copy link

slyrus commented Sep 30, 2020

The documentation isn't quite clear on whether lists of lists should be supported (or arbitrary multi-dimensional lists). Sequences and arrays are supported, but should something like this work?

(defparameter *foo-list*
  '(("moose" "mouse")
    ("horse" "house")))

(select:select *foo-list*
  (select:range 0 1)
  (select:range 0 1))

It seems like it wouldn't be too hard to support this and in at least one case just removing an assertion does allow this to "work". But of this is off-topic, I'll try to find a different approach.

thanks!

@Symbolics
Copy link
Collaborator

This seems like a reasonable thing to want to do, especially if it's only an assertion getting in the way. I think mostly I was assuming vectors to specify selection, but I'm glad you found another use case.

I'm in the middle of a project at the moment, and won't get around to working on this until early November. If the workaround solves the issue for you, I'll put documentation update, test case and removing the assertion on my to-do list.

@Symbolics
Copy link
Collaborator

@slyrus, did you find an approach that works for you? If you've got what you need, I think I'm going to update the documentation to say that only vectors and arrays are supported for now, and mention the possibility of using lists of lists as an enhancement.

@Symbolics Symbolics changed the title Support for lists of lists? Support lists of lists Dec 5, 2020
@snunez1
Copy link

snunez1 commented Jul 18, 2022

Closing as stale. @slyrus, if you still need list-of-lists please reopen.

@snunez1 snunez1 closed this as completed Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants