{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreifc6giwaw64cd2hdxi7vlfyu5swb2imyuyh227ms7vy4kkhk6pl24",
"uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mibg2lcjso72"
},
"path": "/t/introduce-a-way-to-construct-range-from-start-length/24073?page=3#post_43",
"publishedAt": "2026-03-29T20:53:02.000Z",
"site": "https://internals.rust-lang.org",
"tags": [
"new range types"
],
"textContent": "kornel:\n\n> This could be added as a method to `RangeFrom` without being blocked by a new syntax:\n>\n>\n> (start..).take(len)\n>\n\n`(start..).take(len)` already exists for the old range types, it just returns `std::iter::Take<RangeFrom<T>>` instead of `Range<T>`. I think adding it for the new range types is a good idea since they don't directly implement `Iterator`",
"title": "Introduce a way to construct Range from start + length"
}