Usage of splitListIntoHomogeneousLists

Return to directory of Todd's CASA extensions

Converts a list of integers into a list of contiguous lists. See also splitListIntoContiguousLists.

Usage:

au.splitListIntoHomogeneousLists(mylist)

Example:

CASA <29>: au.splitListIntoHomogeneousLists([1,1,1,3,3,2])
  Out[29]: [[1, 1, 1], [3, 3], [2]]

-- Main.ToddHunter - 2013-09-08-- Main.ToddHunter - 2015-05-12
Topic revision: r1 - 2015-05-12, ToddHunter
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback