Skip to content

Commit

Permalink
clean isPermutation
Browse files Browse the repository at this point in the history
  • Loading branch information
9il committed Apr 26, 2016
1 parent b14d190 commit ca0b6fd
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions std/experimental/ndslice/internal.d
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,7 @@ template DynamicArrayDimensionsCount(T)
bool isPermutation(size_t N)(auto ref in size_t[N] perm)
{
int[N] mask;
if (isValidPartialPermutationImpl(perm, mask) == false)
return false;
foreach (e; mask)
if (e == false)
return false;
return true;
return isValidPartialPermutationImpl(perm, mask);
}

unittest
Expand Down

0 comments on commit ca0b6fd

Please sign in to comment.