Cycles of a permutation: Difference between revisions
m
→{{header|Julia}}
Line 168:
""" length of Perm """
Base.length(p::Perm) = length(p.a)
""" permutation signage for the Perm """
Line 197 ⟶ 191:
return Perm(a)
end
""" Get cycles of a Perm permutation as a vector of integer vectors, optionally with singles """
|