Can this now be simplified to `lambda x: '|'.join(x.flatten())`?