Skip to content

Commit

Permalink
Convenience: allow GapInt(x) as shorthand for producing a GAP integer
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Apr 17, 2024
1 parent f639cb7 commit eaf7492
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/constructors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ GapObj(obj; recursive::Bool = false) = julia_to_gap(obj, IdDict(); recursive)::G
Obj(obj, recursive::Bool) = julia_to_gap(obj, IdDict(); recursive)::Obj
GapObj(obj, recursive::Bool) = julia_to_gap(obj, IdDict(); recursive)::GapObj

## Conversion to gap integers
GapInt(x::Integer) = julia_to_gap(x)


"""
BigInt(obj::GapObj)
Expand Down

0 comments on commit eaf7492

Please sign in to comment.