[lib/utils] document about the use of lambda functions and returning void expressions