Re: Recurrence

2013-02-19 Thread n00b
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

Re: Recurrence

2013-02-19 Thread monarch_dodra
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

Recurrence

2013-02-19 Thread n00b
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.