I wrote something similar to carrier::crate here. The difference is that .fn does not need to be a verbatim function definition, with the cost that all values being used need to be declared in .... Do we want this in mlr3misc? I think it would be generally helpful in places where functions are given to objects, e.g. in ParamUty constructor argument custom_check.
I wrote something similar to carrier::crate here. The difference is that
.fn
does not need to be a verbatim function definition, with the cost that all values being used need to be declared in...
. Do we want this in mlr3misc? I think it would be generally helpful in places where functions are given to objects, e.g. inParamUty
constructor argumentcustom_check
.