Skip to content

Commit

Permalink
Merge pull request #4697 from ZombineDev/patch-6
Browse files Browse the repository at this point in the history
Make iotaSlice implementation easier to understand
  • Loading branch information
9il authored Jul 31, 2016
2 parents 50ad274 + fd0ceb2 commit 04b45d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/experimental/ndslice/selection.d
Original file line number Diff line number Diff line change
Expand Up @@ -1731,7 +1731,7 @@ IotaSlice!(Lengths.length) iotaSlice(Lengths...)(Lengths lengths)
IotaSlice!N iotaSlice(size_t N)(auto ref size_t[N] lengths, size_t shift = 0)
{
import std.experimental.ndslice.slice : sliced;
with (typeof(return)) return Range.init.sliced(lengths, shift);
return IotaMap!().init.sliced(lengths, shift);
}

///
Expand Down

0 comments on commit 04b45d1

Please sign in to comment.