so I think I have two possibilities, either the cases stores the lambda somewhere (like it is doing now) in which case apparently cannot be inlined, or it executes the check for the match itself. In the latter case if the first case matches, how do I prevent executing the rest of them