Wasn't able to find the popular elesewhere string funcitons Split and Join, and had to write them again from scratch. Here's this time variants:
NB. split y by substring x; see join split=: [EMAIL PROTECTED] }.each [ (E. <;.1 ]) , NB. join boxed list y with x; see split join=: [: ; [EMAIL PROTECTED] , [: , [EMAIL PROTECTED] ,. [EMAIL PROTECTED] ','join' 'split '1 2 3 one two three' 1,2,3,one,two,three '<'join' of 'split 'a of b of c' a<b<c '['[EMAIL PROTECTED]']'(join ,&a:)'[a';'[b';'[c' +--+--+--+ |a]|b]|c]| +--+--+--+ Interestingly, they are strikingly similar to existing in the Wiki http://www.jsoftware.com/jwiki/Phrases/Strings So it pays to look first. Also it calls for some kind of process to assimilate more frequent phrases into base libraries of addons. This is a case when by themselves these phrases are small and warrant a separate addon or linrary, but could be added to existing ones. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
