#slicing

[ follow ]
fromPythonmorsels
2 months ago

Looping in reverse

Python provides multiple methods to loop over iterables in reverse, each suitable for different data types.
Scala
fromHackernoon
2 months ago

This Tiny Rust Tweak Makes Searching a Slice 9x Faster | HackerNoon

Rust lacks a built-in method for finding the position of an element in a slice, but it can be implemented efficiently.
[ Load more ]