Lines & ListsLesson 368Free preview
Rotate Lines
This lesson is part of Web Developer Tools · All levels
Summary
Rotate Lines move the line circularly as much as a certain position, so that the outgoing line at one end reappears at the other end. The left-hand rotation moves the upper line down, while the right-hand rotation does the opposite. Unlike the reverse, rotation does not reverse the internal order of the line.
Key points
- Rotation is circular and does not eliminate lines
- Rotation 1 to the left moves the first line to the last position
- Rotation to the right is the opposite of rotation to the left
- Rotation by the number of lines returns the original order
- Rotation is useful for rolling a schedule or a to-do list
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.