Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
estebank
on Sept 21, 2020
|
parent
|
context
|
favorite
| on:
My least favorite Rust type
I would even say that it is optimized for the following
slice[start.end]
particularly because `[]` indexing is already a panicky operation.
dathinab
on Sept 22, 2020
[–]
Sure, get is like [] but without panic.
I.e. slice.get(5..0) == None
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: