Skip to content

Commit

Permalink
sort the list all
Browse files Browse the repository at this point in the history
  • Loading branch information
cdwensley committed Jan 3, 2025
1 parent 58a43eb commit 7e1c510
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions doc/gp2ind.xml
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,11 @@ and <C>S</C> runs over all non-trivial normal subgroups of <C>R</C>.
<Example>
<![CDATA[
gap> all := AllInducedXMods( q8 );;
gap> L := List( all, x -> StructureDescription( Source( x ) ) );
[ "C4 x C4", "C2 x C2", "1", "C4 x C4", "C2 x C2", "1", "C4 x C4", "C2 x C2",
"1", "C2 x C2 x C2 x C2", "1" ]
gap> L := List( all, x -> Source( x ) );;
gap> Sort( L, function(g,h) return Size(g) < Size(h); end );;
gap> List( L, x -> StructureDescription( x ) );
[ "1", "1", "1", "1", "C2 x C2", "C2 x C2", "C2 x C2", "C4 x C4", "C4 x C4",
"C4 x C4", "C2 x C2 x C2 x C2" ]
]]>
</Example>

Expand Down
8 changes: 5 additions & 3 deletions tst/manual/gp2ind.tst
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,11 @@ Morphism of crossed modules :-

## Section 7.2.2
gap> all := AllInducedXMods( q8 );;
gap> L := List( all, x -> StructureDescription( Source( x ) ) );
[ "C4 x C4", "C2 x C2", "1", "C4 x C4", "C2 x C2", "1", "C4 x C4", "C2 x C2",
"1", "C2 x C2 x C2 x C2", "1" ]
gap> L := List( all, x -> Source( x ) );;
gap> Sort( L, function(g,h) return Size(g) < Size(h); end );;
gap> List( L, x -> StructureDescription( x ) );
[ "1", "1", "1", "1", "C2 x C2", "C2 x C2", "C2 x C2", "C4 x C4", "C4 x C4",
"C4 x C4", "C2 x C2 x C2 x C2" ]

gap> SetInfoLevel( InfoXMod, saved_infolevel_xmod );;
gap> SetInfoLevel( InfoGroupoids, saved_infolevel_groupoids );;
Expand Down

0 comments on commit 7e1c510

Please sign in to comment.