This is probably a super dumb question, but from what I see they both are indexed data structure, is there particular difference and use cases for each one? Thanks.
A List is a concrete data structure. It actually stores values in memory. A Seq is a lazy operation representation. You can think of it as a very light-weight container of a previous Iterable and some operation to apply (map, filter, etc), that operation is applied only when necessary to get a value. Seq doesn't store any values itself.
Most of the time you want to use List. Seq is useful for making complex operations from List to List more efficient.
This library could exclude Seq and keep working just fine, it's a tool for performance. However List is vital to the library.
Does that answer your question?
Yes, it does help a lot, might even worth adding it to document for later reference?
btw, please feel free to close this issue, thanks.
Thank you for reporting this issue and appreciate your patience. We've notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed.
Most helpful comment
A List is a concrete data structure. It actually stores values in memory. A Seq is a lazy operation representation. You can think of it as a very light-weight container of a previous Iterable and some operation to apply (map, filter, etc), that operation is applied only when necessary to get a value. Seq doesn't store any values itself.
Most of the time you want to use List. Seq is useful for making complex operations from List to List more efficient.
This library could exclude Seq and keep working just fine, it's a tool for performance. However List is vital to the library.
Does that answer your question?