[Haskell-cafe] about Haskell code written to be "too smart"
jake at pikewerks.com
Tue Mar 24 15:43:20 EDT 2009
-----BEGIN PGP SIGNED MESSAGE-----
Miguel Mitrofanov wrote:
| Maybe it's just me, but I think that
| takeList ns xs = evalState (mapM (State . splitAt) ns) xs
| or even
| takeList = evalState . map (State . splitAt)
| would be much clearer than both versions.
Definitely. I stuck with only the functions that were already being used
because I figured the point was to make things readable with a limited
set of building blocks. Thanks for sharing though. That was definitely
not a solution that I was thinking of.
- - Jake
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the Haskell-Cafe