Erlang: What are the pros and cons of different methods for avoiding intermediate variables?
Posted
by erlacher
on Stack Overflow
See other posts from Stack Overflow
or by erlacher
Published on 2010-02-14T23:25:55Z
Indexed on
2010/04/03
15:03 UTC
Read the original article
Hit count: 216
erlang
At one point while traveling the web, I came across a great page which contrasted the clarity and terseness of different methods of doing a sequence of operations without having to make a bunch of throwaway variables, e.g., Var1, Var2, Var3. It tried list comprehensions, folds, maps, etc. For some reason, now matter what I google, I can't find it again. Anyone have any idea what I'm talking about? Or want to explore the topic anyway?
© Stack Overflow or respective owner