Improve docs for filter().

Add Params: to filterBidirectional().
This commit is contained in:
H. S. Teoh 2015-01-07 16:20:15 -08:00
parent a8dba2e669
commit a2daf1a34e

View file

@ -2013,11 +2013,11 @@ unittest
/** /**
$(D auto filter(Range)(Range rs) if (isInputRange!(Unqual!Range));) $(D auto filter(Range)(Range rs) if (isInputRange!(Unqual!Range));)
Implements the higher order filter function. Implements the higher order _filter function.
Params: Params:
predicate = Function to apply to each element of range predicate = Function to apply to each element of range
range = Range of elements range = Input range of elements
Returns: Returns:
$(D filter!(predicate)(range)) returns a new range containing only elements $(D x) in $(D range) for $(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, * that the filtered range can be spanned from both directions. Also,
* $(XREF range, retro) can be applied against the filtered range. * $(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) template filterBidirectional(alias pred)
{ {