 
            
            
            
            
                19 Dec
                
                    2024
                
            
            
                19 Dec
                
                '24
                
            
            
            
        
    
                5:18 p.m.
            
        On Thu, Dec 19, 2024 at 7:52 AM Vinnie Falco <vinnie.falco@gmail.com> wrote:
try_find( users, user_id ).map( [](auto& user) { user.status = deactivated; return user; });
Yup, exactly. My point was that users don't want this compared to the method chaining version and I think the code here kind of speaks for itself. users.try_find().map() is the preferred API over try_find(user).map(). - Christian