diff options
author | Anthony Ramine <[email protected]> | 2013-04-30 10:10:03 +0200 |
---|---|---|
committer | Anthony Ramine <[email protected]> | 2013-04-30 12:46:41 +0200 |
commit | 3ac04f901ecfb3fed128759964ccc54fa4ee7b2a (patch) | |
tree | 12e44041b8e9c15c8ab888081a4d7f336ecd7daa /lib/stdlib/test | |
parent | 7e9ae3007fd3c44a05a746628983faff401dfd0c (diff) | |
download | otp-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')
-rw-r--r-- | lib/stdlib/test/lists_SUITE.erl | 4 |
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, [], [])), |