[Haskell-cafe] 回复: Replace list item with list.

FlyingSheep flyingsheep at qq.com
Sat Nov 4 10:57:23 UTC 2017


(take 2 A) ++ B
 
------------------
李 鹏
四川大学计算机学院


 




------------------ 原始邮件 ------------------
发件人: "mirone"<saul-mirone at qq.com>; 
发送时间: 2017年11月4日(星期六) 晚上6:48
收件人: "haskell-cafe"<haskell-cafe at 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"] ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20171104/c9bf215d/attachment.html>


More information about the Haskell-Cafe mailing list