September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
|
|
@ -17,7 +17,7 @@ T[][] grayDict(int N, T)() pure nothrow {
|
|||
T[][] dict = [gray!(N, T)(), [0]];
|
||||
// Append inversed gray encoding mapping.
|
||||
foreach (immutable i; 1 .. dict[0].length)
|
||||
dict[1] ~= countUntil(dict[0], i);
|
||||
dict[1] ~= cast(T)countUntil(dict[0], i);
|
||||
return dict;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue