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

lsearch, lsort: support for -stride and -index #194

Closed
wants to merge 1 commit into from

Conversation

msteveb
Copy link
Owner

@msteveb msteveb commented Jan 29, 2021

Addresses some of the features mentioned in #170

Add -stride support to both lsearch and lsort
Add -index support to lsearch
Improve -index for lsort to support multiple indices

Also harmonise some error messages with Tcl 8.7

Add -stride support to both lsearch and lsort
Add -index support to lsearch
Improve -index for lsort to support multiple indices

Also harmonise some error messages with Tcl 8.7
@dbohdan
Copy link
Contributor

dbohdan commented Jan 30, 2021

At first glace I don't see issues with the new options or their implementation.

    /* In the rare, contrived case where an index is also the list (or an element)
     * we need to extract the indices first.
     */

Heh. Good catch.

@msteveb msteveb closed this Mar 7, 2021
@msteveb msteveb deleted the lsearch-lsort-stride branch June 21, 2023 22:25
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

Successfully merging this pull request may close these issues.

2 participants