Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I would even say that it is optimized for the following

  slice[start.end]
particularly because `[]` indexing is already a panicky operation.


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: