Function.withParameters

Return a new Function object with the parameters attribute set to value.

struct Function
withParameters
(
immutable(Parameter)[] value
)

Examples

int answer();
mixin(
    refract!(answer, "answer")
    .withName("answerQuestion")
    .withParameters(
        [ Parameter().withName("question").withType("string")])
    .mixture);
int control(string);
static assert(is(Parameters!answerQuestion == Parameters!control));

Meta