NextComposition

NextComposition[l]
constructs the integer composition that follows l in a canonical order.

DetailsDetails

New to Mathematica? Find your learning path »
Have a question? Ask support »