Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 Erlang 中编写与此 Haskell 片段等效的内容?
name@(x:xs)
您可以使用类似Name=[X|Xs]. 一个示例用法是
Name=[X|Xs]
headlist([H|T]=L) -> io:format("List (~p) with head ~p ~n",[L,H]).