[erlang-questions] Generators?

James Hague <>
Mon Jul 30 23:27:03 CEST 2007

> But the problem is that these abstractions, or
> at least the combination of them, are slower than a hand-coded
> function explicit recursion function. So, is there any way to make the
> natural abstractions work as fast as the hand-coded version?

It's interesting that list comprehensions are compiled into code that
acts the same as hand-coded functions, but uses of similar functions
like lists:foldl, lists:flatmap, and lists:partition are not.


More information about the erlang-questions mailing list