ation doesn't
seem to imply the function has to be passed as a string, if that's the
issue.
It is not very well documented (or should I say, documented at all...),
but the signature of a recurrence function must take the form:
"auto recurrence(R)(R r, size_t n);"
Where:
n i
ion has to be passed as a
string, if that's the issue.
It is not very well documented (or should I say, documented at
all...), but the signature of a recurrence function must take the
form:
"auto recurrence(R)(R r, size_t n);"
Where:
n is the current index being calculated and
Hello.
--
MyType increment(MyType previous)
{
//snip
}
auto myRec = std.range.recurrence!increment(initialMyType);
-
... doesn't work. What am I doing wrong? The documentation doesn't seem
to imply the function has to be passed as a string, if that's the issue.