[GAP Forum] Converting a permutation to a list
Nikos Apostolakis
nikos.ap at gmail.com
Mon Aug 18 16:40:08 BST 2014
On Mon, Aug 18, 2014 at 11:17 AM, Pierre-Alain BOURDIL <pabourdi at laas.fr>
wrote:
> Greetings,
>
> i'm looking for a function , say F, such that
>
> F((1,2,3)(5,6)) = [[1,2,3],[5,6]].
>
How about:
gap> Cycles((1,2,3)(5,6), MovedPoints((1,2,3)(5,6)));
[ [ 1, 2, 3 ], [ 5, 6 ] ]
HTH,
Nikos
--
Οι ελαφροί ας με λέγουν ελαφρόν.
Στα σοβαρά πράγματα ήμουν πάντοτε
επιμελέστατος.
The frivolous can call me frivolous. In serious matters I've always been
most diligent.
K. P. Kavafy
More information about the Forum
mailing list