包含 Enumerable 的要求
我一直在尝试设计我的只读数组数据结构,我真的很喜欢用 Enumerable 类提供遍历选项的想法,但我找不到它的要求。在我看过的一些示例中,C 实现会查找 #each
方法,但在我看来这还不够。
I've been trying to design my read only Array data structure and I really like the idea of providing traversing options with Enumerable class, but I cannot find requirements of it. In some examples that I've looked, the C implementation looks for #each
method, but it seems to me that it can't be enough.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
来自 镐 p。 474 以及核心文档:
From Pickaxe p. 474 and also from the core documentation: