How to extract the cycle lengths from a permutation

I want to input: Cycles[{{1, 3, 5}, {2, 4, 6}, {7,8}}] and get something like: {3,3,2}, that is, a list of the cycle lengths in the permutation.

Replay

Category: list manipulation Time: 2016-07-28 Views: 0

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.205 (s). 12 q(s)