[Haskell-cafe] List spine traversal

Tony Morris tonymorris at gmail.com
Sun Jun 28 22:05:07 EDT 2009

Is there a canonical function for traversing the spine of a list?

I could use e.g. (seq . length) but this feels dirty, so I have foldl'
(const . const $ ()) () which still doesn't feel right. What's the
typical means of doing this?

Tony Morris

More information about the Haskell-Cafe mailing list