Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

surround is poorly named #223

Open
Ptival opened this issue Feb 10, 2022 · 0 comments
Open

surround is poorly named #223

Ptival opened this issue Feb 10, 2022 · 0 comments

Comments

@Ptival
Copy link

Ptival commented Feb 10, 2022

Surrounding means to put stuff all around.

From that, I'd infer that surround a [b, c, d] means either a b c d a, or a b a c a d a, but definitely not b a c a d, where b and d are not "surrounded by as.

The standard library use words like intersperse or intercalate, which imply much better the idea of putting things "in between" other things, rather than all around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant