Wolfram Language & System 10.3 (2015)|Legacy Documentation
This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)
finds the longest ordered sequence of contiguous or disjoint elements in list.
finds the longest ordered sequence using the ordering function p.
- LongestOrderedSequence returns the longest common sequence with disjoint pieces concatenated.
- LongestOrderedSequence works on strings as well as lists.
- If there are several ordered sequences of the same length, LongestOrderedSequence returns the one that begins earliest in list.
- For strings, setting the option IgnoreCase->True makes LongestOrderedSequence treat lowercase and uppercase letters as equivalent, and return the form of sequence that occurs in s.
Introduced in 2015