The difference between lists and sequences

Posted by Peanut on Stack Overflow See other posts from Stack Overflow or by Peanut
Published on 2010-04-13T05:27:42Z Indexed on 2010/04/13 5:32 UTC
Read the original article Hit count: 348

Filed under:
|
|
|

I'm trying to understand the difference between sequences and lists.

In F# there is a clear distinction between the two. However in C# I have seen programmers refer to IEnumerable collections as a sequence. Is what makes IEnumerable a sequence the fact that it returns an object to iterate through the collection?

Perhaps the real distinction is purely found in functional languages?

© Stack Overflow or respective owner

Related posts about c#

Related posts about F#