Skip to content

Fully document the len function#6193

Merged
philrz merged 1 commit into
mainfrom
len-doc-details
Sep 8, 2025
Merged

Fully document the len function#6193
philrz merged 1 commit into
mainfrom
len-doc-details

Conversation

@philrz
Copy link
Copy Markdown
Contributor

@philrz philrz commented Sep 5, 2025

What's Changing

This is my attempt to more exhaustively document the len function.

Why

While reviewing #6174 I noticed that len has been only documented in terms of supported types (which were slightly incorrect) and then the list of examples shown was incomplete. While most of its behaviors seem intuitive, on closer inspection I sensed not all of it might be obvious to a new user.

Details

I constructed this through a combination of black box testing and peeking at the code as a non-developer. Therefore a thorough double check for completeness and correctness would be appreciated.

Also, talking about "type type" and such always feels a little funky, so input on wording is also appreciated.

@philrz philrz requested a review from a team September 5, 2025 00:11
@philrz philrz self-assigned this Sep 5, 2025
@philrz philrz merged commit 78a7ab3 into main Sep 8, 2025
5 checks passed
@philrz philrz deleted the len-doc-details branch September 8, 2025 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants