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

list.head and list.tail use Ranges as examples #2631

Closed
JJ opened this issue Feb 21, 2019 · 0 comments
Closed

list.head and list.tail use Ranges as examples #2631

JJ opened this issue Feb 21, 2019 · 0 comments
Assignees
Labels
docs Documentation issue (primary issue type)

Comments

@JJ
Copy link
Contributor

JJ commented Feb 21, 2019

The problem

This example:

say ^10 .head(5);      # OUTPUT: «(0 1 2 3 4)␤» 
say ^.head(5);       # OUTPUT: «(0 1 2 3 4)␤» 
say ^10 .head;         # OUTPUT: «0␤» 
say ^.head;          # OUTPUT: «0␤» 

And the equivalent for tail use Ranges, not List. They actually be calling Any.head and Any.tail which, for the time being, are not documented.

Suggestions

Document Any.head and Any.tail, and fix those examples.

JJ added a commit that referenced this issue Feb 21, 2019
@JJ JJ self-assigned this Feb 23, 2019
@JJ JJ added docs Documentation issue (primary issue type) easy to resolve labels Feb 23, 2019
@JJ JJ closed this as completed in 45a20b4 Feb 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation issue (primary issue type)
Projects
None yet
Development

No branches or pull requests

1 participant