Reimplement concat using Foldable