I want to write this as a single line and not have to do a variable assignment:
def output = myclosure [sdfsdf:"sdfsdf"] // should return "somestring"
assert output == "somestring"
I can't figure out the syntax to just do something like this:
assert myclosure: "sdfsdfds" == "somestring"