Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

Subsequences

Subsequences[list]
gives the list of all possible subsequences of list.

Subsequences[list,n]
gives all subsequences containing at most n elements.

Subsequences[list,{n}]
gives all subsequences containing exactly n elements.

Subsequences[list,{nmin,nmax}]
gives all subsequences containing between nmin and nmax elements.

Subsequences[list,nspec,s]
limits the result to the first s subsequences.

Subsequences[list,nspec,{s}]
gives if possible the s ^(th) subsequence.

DetailsDetails

Introduced in 2016
(10.4)