Benchmarking .......... elapsed milliseconds / relative timing <5000 iterations>
(KGA_LIST_INDEXSEQMAKESTARTEND 0 100) ..... 125 / 4.62 <fastest>
(CAB_IN_RANGE 0 100 1) .................... 235 / 2.46
(EE_IN_RANGE 0 100 1) ..................... 578 / 1.00 <slowest>
My function (KGA_List_IndexSeqMakeStartEnd) is not a true range function, but I think the numbers confirm the effectiveness of the speed improvement method for large ranges (0-100).
For the (CAB_in_range) and (EE_in_range) functions see reply #34 by ymg.