Explain Iterators from foreach - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Explain Iterators from foreach (
/showthread.php?tid=324105)
Explain Iterators from foreach -
Ballu Miaa - 08.03.2012
Hello everyone,
I was checking the
Official foreach YSI thread. There was lot of information about iterators and their usage. But i really didnt understand its basic. And the basic usage of it?
Can anyone please explain me this? Anything will be appreciated by reputating the person!
Thanks
Ballu Miaa
Re: Explain Iterators from foreach -
jameskmonger - 08.03.2012
http://en.wikipedia.org/wiki/Iterato....NET_languages
Re: Explain Iterators from foreach -
System64 - 08.03.2012
You can use it for example, houses
with foreach you will use foreach(NameOfIteratorForHouses, h)
and that's more faster than normal loop!
Re: Explain Iterators from foreach -
Ballu Miaa - 09.03.2012
I want someone to explain the Iterators used on ForEach include! I dont know the usage of that one.
@System64- Thanks for that but please tell me what does iterator is used for?