Add variants of tails and inits not returning empty lists
This patch adds the tails1 and inits1 function, that behave like their counterpart except that they won't return an empty list. I've needed them several times already, so it seems to me they would be useful to have in base.
Trac metadata
Trac field | Value |
---|---|
Version | 6.8.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | libraries/base |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | Unknown |
Architecture | Unknown |