mirror of
https://github.com/dlang/phobos.git
synced 2025-05-12 15:17:12 +03:00
Add Params:, Returns:, to findSplitxx().
This commit is contained in:
parent
89d9653f77
commit
4ac555c870
1 changed files with 8 additions and 0 deletions
|
@ -2397,6 +2397,14 @@ If $(D haystack) is a random-access range, all three components of the
|
||||||
tuple have the same type as $(D haystack). Otherwise, $(D haystack)
|
tuple have the same type as $(D haystack). Otherwise, $(D haystack)
|
||||||
must be a forward range and the type of $(D result[0]) and $(D
|
must be a forward range and the type of $(D result[0]) and $(D
|
||||||
result[1]) is the same as $(XREF range,takeExactly).
|
result[1]) is the same as $(XREF range,takeExactly).
|
||||||
|
|
||||||
|
Params:
|
||||||
|
pred = Predicate to use for comparing needle against haystack.
|
||||||
|
haystack = The range to search.
|
||||||
|
needle = What to look for.
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
A tuple of the split portions of `haystack` (see above for details).
|
||||||
*/
|
*/
|
||||||
auto findSplit(alias pred = "a == b", R1, R2)(R1 haystack, R2 needle)
|
auto findSplit(alias pred = "a == b", R1, R2)(R1 haystack, R2 needle)
|
||||||
if (isForwardRange!R1 && isForwardRange!R2)
|
if (isForwardRange!R1 && isForwardRange!R2)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue