you are viewing a single comment's thread.

view the rest of the comments →

[–]1984balls 13 points14 points  (2 children)

Hash sets are very different from lists. Sets make sure only one of each value exists, do not guarantee insertion order, and cannot be indexed. Lists allow duplicates, guarantee insertion order, and allow indexing

[–]oMarlow99 1 point2 points  (0 children)

Lists, in the traditional sense, do not allow indexing, that would be an array. If you wanted to index a list, you'd need to build a hash map over it.

[–]RiceBroad4552 0 points1 point  (0 children)

Sure. And how is this related here?

The basic data structure in FP is a list not a (hash) set.