functional programming - Erlang print 2 list -


i have 2 list:

 list1 = [1,2,3].  list2 = ["asd", "sda", "dsa"]. 

how can print list in following turn:

1 asd 2 sda 3 dsa

thank you.

1> lists:zipwith(fun (x1, x2) -> io:format("~p ~p ", [x1,x2]) end, list1, list2). 1 "asd" 2 "sda" 3 "dsa" [ok,ok,ok] 2>  

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -