mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 06:30:28 +03:00
Improve docs for filter().
Add Params: to filterBidirectional().
This commit is contained in:
parent
a8dba2e669
commit
a2daf1a34e
1 changed files with 5 additions and 2 deletions
|
@ -2013,11 +2013,11 @@ unittest
|
|||
/**
|
||||
$(D auto filter(Range)(Range rs) if (isInputRange!(Unqual!Range));)
|
||||
|
||||
Implements the higher order filter function.
|
||||
Implements the higher order _filter function.
|
||||
|
||||
Params:
|
||||
predicate = Function to apply to each element of range
|
||||
range = Range of elements
|
||||
range = Input range of elements
|
||||
|
||||
Returns:
|
||||
$(D filter!(predicate)(range)) returns a new range containing only elements $(D x) in $(D range) for
|
||||
|
@ -2210,6 +2210,9 @@ private struct FilterResult(alias pred, Range)
|
|||
* that the filtered range can be spanned from both directions. Also,
|
||||
* $(XREF range, retro) can be applied against the filtered range.
|
||||
*
|
||||
* Params:
|
||||
* predicate = Function to apply to each element of range
|
||||
* r = Bidirectional range of elements
|
||||
*/
|
||||
template filterBidirectional(alias pred)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue