作者:手机用户2502922177 | 来源:互联网 | 2023-05-17 04:53
IjuststompedatabeginendinErlangsdocumentation(here),butitdoesntgivesomeexamples
I just stomped at a begin...end
in Erlang's documentation (here), but it doesn't give some examples of how it is useful.
我刚一开始就跺脚……结束在Erlang的文档中(这里),但是它没有给出一些示例说明它是如何有用的。
Looking here in StackOverflow I found two cases where people would be using begin...end
, both in list comprehensions:
在StackOverflow上,我找到了两个人们会用begin的例子……最后,在清单的理解中:
- https://stackoverflow.com/a/5645116/979505
- https://stackoverflow.com/a/5645116/979505
- https://stackoverflow.com/a/5141263/979505
- https://stackoverflow.com/a/5141263/979505
But I wonder if there are more of such uses.
但我想知道是否还有更多这样的用途。
Can anyone provide another scenario in which a begin...end
is useful in Erlang?
任何人都能提供另一种情景吗?结束在Erlang中有用吗?
Thanks
谢谢
4 个解决方案