سؤال

I want to iterate a map but its giving "unknown identifier referenced in the spl program" on line 2.

logic state: { mutable map<uint32,rstring> ageNameMap ={}; 
               mutable MapIterator it;//2
       }

Any idea how to fix this?

هل كانت مفيدة؟

المحلول

for (unit32 in ageNameMap){

...
}

This resolved my problem.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top