MCPcopy Index your code
hub / github.com/RustPython/RustPython / do_stepped_slice

Method do_stepped_slice

crates/vm/src/sliceable.rs:235–237  ·  view source on GitHub ↗
(&self, range: Range<usize>, step: usize)

Source from the content-addressed store, hash-verified

233
234 #[inline]
235 fn do_stepped_slice(&self, range: Range<usize>, step: usize) -> Self::Sliced {
236 self[range].iter().step_by(step).cloned().collect()
237 }
238
239 #[inline]
240 fn do_stepped_slice_reverse(&self, range: Range<usize>, step: usize) -> Self::Sliced {

Callers 1

getitem_by_sliceMethod · 0.45

Calls 2

collectMethod · 0.80
iterMethod · 0.45

Tested by

no test coverage detected