데먕 2019. 10. 28. 15:54

1. Overview

Slicing relies on indexing. It only works with sequence types.

2. Description

2.1 Capability on sequence types

2.2 Sequence type

2.3 Slice start and stop bounds

2.4 Step value

2.5 Range equivalence

2.6 Transformation [i:j]

2.7 Transformations [i:j:k], k > 0

2.8 Transformations [i:j:k], k < 0

2.9 indices method

2.10 Summary

3. Example

3.1 Example 1

3.2 Example 2

4. References

https://mathbyteacademy.com/