Does Apex support the lambda concept?
Ultimately, I'm trying to dry some really duplicate code in my tests, so I would like to be able to pass functions around, something like this (C # -esq)
public static TestMethod void some_test_method(){
Arrange( ()=>
);
Act( ()=>
);
System.assertEquals(...);
}
source
share