You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Julia does not know the concept of holes.
If we say that Julia shall interpret a GAP list with holes as an array of the same length as in GAP such that unbound entries correspond to nothing (this is what getindex does) then a different behaviour for iteration might look inconsistent.
On the other hand, we could define that Julia iteration over a GAP list is the same as GAP iteration.
In both cases, we mainly have to document the situation (also in the Oscar manual section on "Notes for users of other computer algebra systems").
Currently we have this:
Perhaps we should do what GAP does in this situation and just skip holes? I.e., do this:
Note that this is purely about iteration. When converting to a vector, I'd expect things to stay as they are:
Motivated by discussion at PR #967.
The text was updated successfully, but these errors were encountered: