O'Reilly logo
  • Johan Hidding thinks this is interesting:

> either Left (\csv -> Right $ countFieldsInEachRecord csv) csv

From

Cover of Learning Haskell Data Analysis

Note

better: fmap countFieldsInEachRecord csv