[Haskell-cafe] Missing join and split

Lihn, Steve horng_twu_lihn at merck.com
Fri Dec 28 11:51:38 EST 2007

Programmer with perl background would think split like:
  <list of string> = split <regex> <original string>
Since regex is involved, it is specific to (Byte)String, not a generic
list. Also it appears one would need help from Text.Regex(.PCRE) to do

>     intercalate a (split a xs) = a
This identity rule does not hold for perl's join/split if regex is used.


-----Original Message-----
On Dec 28, 2007 4:24 PM, Benja Fallenstein <benja.fallenstein at gmail.com>
> Right; I misspoke. What I meant was that you would want a split such
>     intercalate a (split a xs) = a

Notice:  This e-mail message, together with any attachments, contains
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
New Jersey, USA 08889), and/or its affiliates (which may be known
outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD
and in Japan, as Banyu - direct contact information for affiliates is 
available at http://www.merck.com/contact/contacts.html) that may be 
confidential, proprietary copyrighted and/or legally privileged. It is 
intended solely for the use of the individual or entity named on this 
message. If you are not the intended recipient, and have received this 
message in error, please notify us immediately by reply e-mail and then 
delete it from your system.


More information about the Haskell-Cafe mailing list