photo

Qixiang Zou


Active since 2017

Followers: 0   Following: 0

Statistics

  • First Answer

View badges

Feeds

View by

Answered
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...

7 years ago | 6

Question


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...

7 years ago | 1 answer | 0

1

answer