Wow! This is GREAT stuff. My use-case is slightly more complex,
and I'm not sure how to best apply this knowledge. The retro
reverses the array which is problematic in itself as well as
losing the starting index location. I have an array that I'd like
to elegantly rotate. Best way I can show
Ooo.. I like the drop and take approach! I wonder if this could
be something that makes it into the standard library
(std.range?). What would be the best way to approach in
suggesting that?
Why not drop and take?
http://dpaste.dzfl.pl/0649b809c81e
(disclaimer: I'm new around here)
Is it possible to cycle backwards? If not, what's the best
approach?
Example of some ideal takeBack function:
data = cycle([1,2,3][])
take(data, 4) is [1,2,3,1][]
takeBack(data, 4) would be [1,3,2,1][]
Thoughts?
*bump*
On Tuesday, 11 June 2013 at 19:57:27 UTC, Jonathan Dunlap wrote:
I was listening to one of the DConf sessions and where was some
talk about implementing async from C# into D someday in the far
future. Recently I learned about D's fibers... and it looks
like the same thing to me. What
I was listening to one of the DConf sessions and where was some
talk about implementing async from C# into D someday in the far
future. Recently I learned about D's fibers... and it looks like
the same thing to me. What are the major differences in principle?
-Jonathan
@jonathanAdunlap
Hmm, it must be an issue then with 2.062. I'll upgrade tomorrow
and see if that helps. Thanks!
On Saturday, 11 May 2013 at 05:13:18 UTC, Maxim Fomin wrote:
On Saturday, 11 May 2013 at 01:18:47 UTC, Jonathan Dunlap wrote:
This looks like already fixed in git head incorrect error
gagging
So what does Error: function
std.algorithm.MapResult!(adjoin, Result).MapResult.opIndex cannot
get frame pointer to adjoin actually mean? It's a bit cryptic to
me.
Thanks!
On Saturday, 11 May 2013 at 05:13:18 UTC, Maxim Fomin wrote:
On Saturday, 11 May 2013 at 01:18:47 UTC, Jonathan Dunlap
Building Solution: DFizzBuzz (Debug)
Building: DFizzBuzz (Debug)
Performing main compilation...
Current dictionary: C:\D\Projects\DFizzBuzz\DFizzBuzz
C:\D\dmd2\windows\bin\dmd.exe -debug -gc main.d
-IC:\D\dmd2\src\druntime\import -IC:\D\dmd2\src\phobos
-odobj\Debug