Hacker News new | past | comments | ask | show | jobs | submit login

Actually (unwords . words) is the identity only for lists of strings containing no whitespace. For example:

   Prelude> let xs = [" a"] in xs == (words . unwords) xs
   False



Thanks for catching that!




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: