Skip to content

Conversation

@cmcaine
Copy link
Contributor

@cmcaine cmcaine commented Apr 9, 2025

Calling the helper function p() is a bit confusing because the p-series is a kinda well-known infinite series, and the example function isn't for that series. The p series is 1 + 1/(2^p) + 1/(3^p) + ...

The example sequence is https://oeis.org/A002024. I picked a name for the functions from the references listed by the Online Encyclopedia of Integer Sequences.

As an unrelated change, I've added a link to MDN for flatMap, because I didn't know that it existed for iterators, or precisely what it does.

Calling the helper function p() is a bit confusing because the p-series is a kinda well-known infinite series

(1 + 1/(2^p) + 1/(3^p) + ...)

I've chosen a name from one of the references listed by the Online Encyclopedia of Integer Sequences for this sequence.

https://oeis.org/A002024

As an unrelated change, I've added a link to MDN for `flatMap`, because I didn't know that it existed for iterators, or precisely what it does.
@Delapouite
Copy link

Thanks. Could the new names be in camelCase? Snake_case is not idiomatic in JS.

Co-authored-by: Michael Ficarra <[email protected]>
@michaelficarra michaelficarra merged commit 463e6f7 into tc39:main Apr 9, 2025
2 checks passed
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

Successfully merging this pull request may close these issues.

3 participants