4b0d8831c2
The description of the callback function was still quite confusing. The main usage for the return argument from the callback function is not handling failures, but knowing wether the function did something in the list or not, and stopping the iteration if only one item was looked for. Add an example use of the function return value to implement a linear search in the list and remove the note about the function "failing", which is not what this parameter was meant to do (and I think that lead to the initial inversion of "true" and "false" values. Change-Id: If8cae8b8ee21ced2c899aef6033a89ab8dbf1621 Reviewed-on: https://review.haiku-os.org/c/haiku/+/5339 Reviewed-by: waddlesplash <waddlesplash@gmail.com> Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> |
||
---|---|---|
.. | ||
add-ons | ||
apps | ||
develop | ||
interface_guidelines | ||
misc | ||
user | ||
userguide | ||
welcome |