On Sunday, July 22, 2012 02:34:47 Enerqi wrote:
> Ok thanks! I was hoping to avoid making a copy of the arrays,
> which I think std.array.join does, when treating them as a single
> array range. Wishful thinking perhaps :)
It works as long as you don't need capabilities that the new range doesn't
Ok thanks! I was hoping to avoid making a copy of the arrays,
which I think std.array.join does, when treating them as a single
array range. Wishful thinking perhaps :)
On Saturday, 21 July 2012 at 20:18:25 UTC, Jonathan M Davis wrote:
On Saturday, July 21, 2012 21:47:19 Enerqi wrote:
Thanks!
On Saturday, July 21, 2012 13:18:15 Jonathan M Davis wrote:
> And it would never work with the separator, since the separator
> would be in the range multiple times, and sorting it could really mess it
Actually, I take that back. Since the separator is a forward range, it could
probably be done.
On Saturday, July 21, 2012 21:47:19 Enerqi wrote:
> Thanks! That does join up the arrays as I'd like.
> An issue remaining is that, unlike with the chain function, I
> can't sort the output of the joiner function.
>
> Error: template instance std.algorithm.sort!("a <
> b",cast(SwapStrategy)0,Resul
Thanks! That does join up the arrays as I'd like.
An issue remaining is that, unlike with the chain function, I
can't sort the output of the joiner function.
Error: template instance std.algorithm.sort!("a <
b",cast(SwapStrategy)0,Result) error instantiating
Seems the return type of joiner doe
On Saturday, 21 July 2012 at 16:42:50 UTC, Enerqi wrote:
Hello
I'm playing around with my first D program and can't figure out
a way to chain a dynamic number of ranges. In this example I'm
trying to chain a two dimensional array into effectively a one
dimensional array, so I can later sort i