How can I rewrite in a list in Erlang?

后端 未结 0 1136
死守一世寂寞
死守一世寂寞 2020-11-22 01:58

I have a list L = [1,2,3].

I perform the following on L:

lists:sublist(L,2) ++ [10] ++ lists:nthtail(3,L).

Instead of storing

相关标签:
回答
  • 消灭零回复
提交回复
热议问题