Skip to content

SList and Dlist should be forward ranges#4038

Closed
wilzbach wants to merge 2 commits intodlang:masterfrom
wilzbach:slist_forward_range
Closed

SList and Dlist should be forward ranges#4038
wilzbach wants to merge 2 commits intodlang:masterfrom
wilzbach:slist_forward_range

Conversation

@wilzbach
Copy link
Contributor

@wilzbach wilzbach commented Mar 2, 2016

I was a bit shocked first when I realized that the primitives and therefore all related functions from std.algorithms don't work with SList/DList.

There I propose to add a few aliases in order to stick the primitives and so that it can be used with other Phobos algorithms ;-)

@JackStouffer
Copy link
Contributor

The omission is by design. To get a range from a SList or DList, simply slice it.

@wilzbach wilzbach closed this Mar 2, 2016
@wilzbach
Copy link
Contributor Author

wilzbach commented Mar 2, 2016

Ah my fault - will add maybe another PR to make this clearer in the documentation.

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.

2 participants