haiku/docs
Adrien Destugues 4b0d8831c2 HaikuBook: better doc and example for BList::DoForEach
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>
2022-05-26 07:49:01 +00:00
..
add-ons Move NetFS to a package 2014-11-17 15:24:07 +01:00
apps Migrate the BTextMailComponent docs to the Haiku Book. 2017-12-26 13:59:25 -05:00
develop docs/develop: Document how to build source hpkgs 2022-05-25 12:48:27 +00:00
interface_guidelines HIG doc: Fix typos etc. 2020-10-09 11:09:02 +00:00
misc makefile-engine docs: Fix app_name_catalog_entry. 2018-08-25 21:22:54 -04:00
user HaikuBook: better doc and example for BList::DoForEach 2022-05-26 07:49:01 +00:00
userguide HaikuDepot: Show Publish Date 2021-10-27 05:27:53 +00:00
welcome User documentation: synchronize welcome docs from the userguide translator 2021-07-21 12:54:19 +01:00