Finish Array compact and difference functions