Yeah, I realized after posting it. (See edit.) The original code was using non-string objects. I basically come up with this to get the same behavior as str.join(). ;-)
'|'.join(str(x) for x in y) # or
'|'.join(map(str, y))Aw, heck, code speaks louder than words:
https://github.com/PhoenixBureau/PigeonComputer/blob/master/...
intersperseM or $ map chartok whitespace
Oh... wait... sorry... wrong language.