[Issue 5645] std.range.drop(), std.range.slice()
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 23 05:22:17 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5645
--- Comment #1 from bearophile_hugs at eml.cc 2011-02-23 05:19:35 PST ---
Currently you are able to write drop(fib, 9).front like this, in two lines:
import std.stdio, std.array, std.range;
void main() {
auto fib = recurrence!("a[n-1] + a[n-2]")(1, 1);
popFrontN(fib, 9);
writeln(fib.front());
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list