Skip to content

Commit 84bb37a

Browse files
authored
Merge pull request #27 from gap-packages/mh/HeLP_INTERNAL_IsIntVect
Simplify HeLP_INTERNAL_IsIntVect
2 parents 37a9329 + 7c5d56d commit 84bb37a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/HeLP_internal_functions_no_solving.gi

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,7 @@ end);
3333
BindGlobal("HeLP_INTERNAL_IsIntVect", function(v)
3434
# Arguments: a vector
3535
# Output: true if the vector has only integral entries, false otherwise
36-
local w, j;
37-
w := IsVector(v);
38-
for j in [1..Size(v)] do
39-
w := w and IsInt(v[j]);
40-
od;
41-
return w;
36+
return IsVector(v) and ForAll(v, IsInt);
4237
end);
4338

4439
########################################################################################################

0 commit comments

Comments
 (0)