Split-Apply-Combine in arrays

here you can find a discussion about a similar problem