Updated concat with Vlad's implementation.
It's not measurably faster, but simpler and might be faster in some situations.