开发者

Erlang equivalent of Haskell's Data.List etc.?

As an Erlanger, one thing I envied about Haskell is its modules such as Data.List. It is well thought and carefully named, e.g. its intersperse, intercalate, and tran开发者_StackOverflow社区spose functions. I wonder if there's Erlang project which tries to collect common data structure and utility implementations and presents them in a concise way.


As far as I can read from here:

http://haskell.org/ghc/docs/latest/html/libraries/base/Data-List.html

the module contains basic operations on lists. The Erlang equivalent I suppose is the lists module:

http://www.erlang.org/doc/man/lists.html

They both contain functions to map, reverse, fold and so on.

If a specific function is not there, I would rather implement it and ask the OTP team to integrate it with that module (or in a different module), rather than having an external library providing these functionalities.


I've implemented a sizable subset of Data.List as part of my l library. https://github.com/pzel/l

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜