Replace map/2 & filter/2 with list comprehensions
A pair of brackets and pipes is often much more readable than anonymous functions inside lists:map/2 inside a fun() inside lists:filter/2.
Written by Astro
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Erlang
Authors
Related Tags
#erlang
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#