Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 87e19a3199efdb8bd8e554df6a9c6169fd150d8c59a10eb9a10db38f665fcb37
Ticket: 999b6966b29915bf9e3754969e5521e7573dc667
lseq has incorrect results in edge cases
User & Date: griffin on 2026-01-12 13:00:21
Changes

  1. comment changed to:
    Documentation states:
    
      If a step vale is included, it's sign should agree with the direction of the sequence (descending → negative and ascending → positive), otherwise an empty list is returned
    
    The behaviour of lseq only matches this statement for step sizes up to the length of the sequence.
    
    %lseq 1 to 10 by -9
    %lseq 1 to 10 by -10
    1
    
    %lseq 10 to 1 by 9
    %lseq 10 to 1 by 10
    10
    
    It should return start element independent of step, doc mismatch for sign not agreeing with seq direction.
    
  2. login: "griffin"
  3. mimetype: "text/plain"
  4. title changed to: "lseq has incorrect results in edge cases"