ctCollapse function

ctCollapse Easily collapse an array margin using a specified function.