aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/test/lists_SUITE.erl
diff options
context:
space:
mode:
authorAnthony Ramine <[email protected]>2013-04-30 10:10:03 +0200
committerAnthony Ramine <[email protected]>2013-04-30 12:46:41 +0200
commit3ac04f901ecfb3fed128759964ccc54fa4ee7b2a (patch)
tree12e44041b8e9c15c8ab888081a4d7f336ecd7daa /lib/stdlib/test/lists_SUITE.erl
parent7e9ae3007fd3c44a05a746628983faff401dfd0c (diff)
downloadotp-3ac04f901ecfb3fed128759964ccc54fa4ee7b2a.tar.gz
otp-3ac04f901ecfb3fed128759964ccc54fa4ee7b2a.tar.bz2
otp-3ac04f901ecfb3fed128759964ccc54fa4ee7b2a.zip
Rename and document lists:zf/2 as lists:filtermap/2
This function is used all over the place in OTP itself and people sometimes want that functionality, they may as well not reimplement it themselves.
Diffstat (limited to 'lib/stdlib/test/lists_SUITE.erl')
-rw-r--r--lib/stdlib/test/lists_SUITE.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stdlib/test/lists_SUITE.erl b/lib/stdlib/test/lists_SUITE.erl
index b56f0b39d8..cd7210f8ec 100644
--- a/lib/stdlib/test/lists_SUITE.erl
+++ b/lib/stdlib/test/lists_SUITE.erl
@@ -2532,8 +2532,8 @@ otp_5939(Config) when is_list(Config) ->
?line [] = lists:filter(Pred, []),
?line {'EXIT', _} = (catch lists:partition(func, [])),
?line {[],[]} = lists:partition(Pred, []),
- ?line {'EXIT', _} = (catch lists:zf(func, [])),
- ?line [] = lists:zf(Fun1, []),
+ ?line {'EXIT', _} = (catch lists:filtermap(func, [])),
+ ?line [] = lists:filtermap(Fun1, []),
?line {'EXIT', _} = (catch lists:foreach(func, [])),
?line ok = lists:foreach(Fun1, []),
?line {'EXIT', _} = (catch lists:mapfoldl(func, [], [])),