# Using \`index(\_:offsetBy:limitedBy:)\` at the limit

**URL:** <https://forums.swift.org/t/using-index-limitedby-at-the-limit/78564>\
**Category:** Using Swift\
**Tags:** collection\
**Created:** [March 16, 2025, 11:21pm UTC](https://forums.swift.org/t/using-index-limitedby-at-the-limit/78564 "2025-03-16T23:21:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![CTMacUser](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/ctmacuser/32/1802_2.png) [@CTMacUser](https://forums.swift.org/u/CTMacUser)\
**Post date:** [March 16, 2025, 11:21pm UTC](https://forums.swift.org/t/using-index-limitedby-at-the-limit/78564/1 "2025-03-16T23:21:07Z")

</div>

If the starting index is already at the border index, and the offset distance isn't 0, then this method should return `nil`, right? The description mentions the limit having no effect if it's in the wrong direction, but it uses strictly-less or -greater, so the "no effect" doesn't apply.
