VB Lambda Functions

Is it possible to store lambda functions as variables (function references) at the package level? This is described here: How to: Create a Lambda Expression - Visual Basic | Microsoft Learn

I’d like a lightweight way to create utility functions to provide standard functionality at the package level. I’m thinking I can define the function and return in a code stage, but am not sure about Type & Binding requirements.

Without looking into these UiPath+VB internals, it “feels” like it could be the right approach if lambdas work as expected. Is this something others have had any success with?

@jketchas
not all clear on what you want to achieve or solve
maybe this post can help you to start: