Skip to content

Conversation

@zhangenming
Copy link

@zhangenming zhangenming commented Dec 12, 2025

+--------------------------+--------------------------------+----------+
| ``s * n`` or | equivalent to adding *s* to | (2)(7) |
| ``n * s`` | itself *n* times | |
| ``n * s`` or ``s *= n`` | itself *n* times | |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think the second form is an equivalent of n * s. Ditto for concatenation.

Rather you could extend the footnote to mention that some sequence types have support for in-place concatenation (or repetition).

CC @StanFromIreland

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

3 participants