Skip to content
Tcl Source Code Artifact [9c8161eb46]
Login

Artifact [9c8161eb46]

Artifact 9c8161eb4625157ead9f1f51d09c97357ba8c0d59d28ccbd3d272b070e4d7cfe:

Ticket change [9c8161eb46] - Ticket [999b6966b29915bf|999b6966b2] <i>lseq has incorrect results in edge cases</i> status still Open with 3 other changes by griffin on 2026-01-14 16:09:40.
D 2026-01-14T16:09:40.246
J icomment Errors\sare\sreserved\sfor\sany\sarguments\sthat\sare\sinvalid,\se.g.\sa\snumeric\sargument\sis\snot\sa\snumber.\sOtherwise,\sa\ssequence\sis\screated.\s\r\n\r\nA\ssequence\sis\sdefined\sas\sa\smathematic\sexpression:\s\sY\s=\smX\s+\sb\r\n\r\nThe\slist\salso\shas\sa\ssize\s(length)\slimit\sbased\son\sthe\sarguments\s(start,\send,\sstep):\r\n\r\n\s\s\s\scount\s=\sint(\s(end\s-\sstart\s+\s1)\s/\sstep\s)\r\n\r\nIf\sthe\scount\sis\s0\sor\snegative,\sthe\ssequence\sis\sconsidered\sempty,\sand\san\sempty\sset\sis\sa\svalid\sresult.\r\n\r\nThe\ssequence\scan\sbe\sthe\sempty\sset\swhen\sa\sterminating\sboundary\sis\smet,\sand\sthere\sare\sno\sprior\sresults,\s\r\nor\sif\sthe\sdirection\sof\sthe\ssequence\sis\sinconsistent.\sFor\sexample,\sthe\ssequence\sfrom\s1\sto\s10\sby\s-1\swill\sproduce\sthe\sempty\sset\ssince\sthe\sdirection\sof\sthe\srange\sis\sopposite\sof\sthe\sincrement.\r\n\r\nWith\sthat\sbeing\ssaid,\sthere\sare\sbugs\sin\sthe\salgorithm\sthat\sneed\sto\sbe\saddressed.
J login griffin
J mimetype text/x-markdown
K 999b6966b29915bf9e3754969e5521e7573dc667
U griffin
Z 958b56fd76a971e9f5bd8a8d1ae2f0e3