mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 22:21:09 +03:00
doc comments for algo.cmp.among
lowercase to search for
This commit is contained in:
parent
eba63621c6
commit
f8fd5410cc
1 changed files with 9 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue