Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2021-12-30
14:12 • New ticket [a5a99f0aef] lsearch returns different results depending on order of ... artifact: c62580bac7 user: pooryorick

lsearch returns different results depending on order of -bisect and -exact arguments

Opena5a99f0aef0a6923c4a3ef4c744527a0ed328901Created 5 years agoUpdated 5 years ago
Descriptionwiki2021-12-30 14:12:29
In the following example, swapping -bisect and -exact causes lsearch to behave differently:

% lsearch -bisect -exact -stride 2 -index 0 {one two} three
-1
% lsearch -exact -bisect -stride 2 -index 0 {one two} three
0
Log in (anonymous is fine) to add a comment.