Skip to content

Commit

Permalink
doc comments for algo.cmp.among
Browse files Browse the repository at this point in the history
lowercase

to search for
  • Loading branch information
burner committed Mar 18, 2015
1 parent eba6362 commit f8fd541
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions std/algorithm/comparison.d
Expand Up @@ -63,6 +63,15 @@ of the first matching value in $(D values), or $(D 0) if $(D value)
is not _among $(D values). The predicate $(D pred) is used to
compare values, and uses equality by default.
Params:
pred = The predicate used to compare the values.
value = The value to search for.
values = The values to compare the value to.
Returns:
0 if value was not found among the values, otherwise the index of the
found value plus one is returned.
See_Also:
$(LREF find) and $(LREF canFind) for finding a value in a
range.
Expand Down

0 comments on commit f8fd541

Please sign in to comment.