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 authored Apr 21, 2024
1 parent eae6963 commit a6d73fc
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 a6d73fc

Please sign in to comment.