On 20.05.19 05:29, jianrong wrote:
> I am trying to write a function in sage to permute a list of elements.

An alternative might me something along the following:

|
Permutation("(1,2,3)(4,5)").action(['a', 'b', 'c', 'd', 'e'])
|

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/5d1bf88f-f9c0-53ff-bd4b-db4c77c8c834%40aon.at.
For more options, visit https://groups.google.com/d/optout.

Reply via email to