(take 2 A) ++ B
------------------ 原始邮件 ------------------
发件人: "mirone"<saul-mirone@qq.com>;
发送时间: 2017年11月4日(星期六) 晚上6:48
收件人: "haskell-cafe"<haskell-cafe@haskell.org>;
主题: [Haskell-cafe] Replace list item with list.
Hello everyone! If I have a list A : ["x", "y", "z"]
and a list B: ["f", "g"].
Here is my question:
What's the simplest way to replace "z" in the list A by list B, and get ["x", "y", "f", "g"] ?