I don't think so.<div><br></div><div>As we don't say "Fibonacci collection", we know Fibonacci numbers are in order. But we can't tell the number immediately if I asked a specific index of Fibonacci sequence. The only way is calculate the sequence one by one from start.</div><div><br></div><div>So we need the collection, and collection do the jobs. But it true that collections are<span></span> sequences.</div><div>Swift is also have this definition, in concrete implementation way.<br><br>Dmitri Gribenko <<a href="mailto:gribozavr@gmail.com">gribozavr@gmail.com</a>> 於 2015年12月31日星期四 寫道:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, Dec 31, 2015 at 3:04 PM, Susan Cheng <<a href="javascript:;" onclick="_e(event, 'cvml', 'susan.doggie@gmail.com')">susan.doggie@gmail.com</a>> wrote:<br>
> yes for sequences are not immutable. I get confused.<br>
><br>
> no for sequences should be definition of lists of values. Just like<br>
> Fibonacci sequence, we can calculate the values form the start of the<br>
> Fibonacci sequence one by one. But we are not accessing the values of<br>
> Fibonacci sequence.<br>
<br>
Those are collections. Collections can be iterated over multiple times.<br>
<br>
Dmitri<br>
<br>
--<br>
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if<br>
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <<a href="javascript:;" onclick="_e(event, 'cvml', 'gribozavr@gmail.com')">gribozavr@gmail.com</a>>*/<br>
</blockquote></div>