Yep, compact is like the Haskell prelude function of the same name.