[erlang-questions] Pipe Operator in Erlang?

Max Lapshin max.lapshin@REDACTED
Fri Jul 10 08:22:11 CEST 2015


>     PvtFuns = [ fun add_pvt_type/1
>                      , fun add_pvt_vsn/1
>                      , fun maybe_add_pvt_api_key/1
>                      , fun maybe_add_pvt_tree/1
>                      , fun add_pvt_enabled/1
>                      ],
>     NewRecord = lists:foldl(fun(F, C) -> F(C) end, Record, PvtFuns),
>


I remember how I've got 10-20% speedup when I changed this code in
flussonic to plain function calls =)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150710/1e1ea605/attachment.htm>


More information about the erlang-questions mailing list