Feeds
回答済み
How can I iterate over the keys and elements in a containers.Map?
D = containers.Map('air',1) for k = keys(D) D(k{1}}) end This should work. Iterator of cell returns element wr...
How can I iterate over the keys and elements in a containers.Map?
D = containers.Map('air',1) for k = keys(D) D(k{1}}) end This should work. Iterator of cell returns element wr...
8年以上 前 | 6
質問
Can I custum "for" loop for my class instance?
Suppose I defined a class "MyClass", how can I implement an iterator for it? For example, if I write MyClass similiar to contain...
8年以上 前 | 1 件の回答 | 0
