DEV Community

Discussion on: Six Data Structures To Help You Ace Your Technical Interview

 
tyrrrz profile image
Oleksii Holub

Functional programming languages heavily use linked lists because of immutability. If you need to add an item to the list, you can create a new tail and re-use the existing list. It's extremely good for performance. Also, head/tail pattern matching works really well on linked lists.

Thread Thread
 
aminmansuri profile image
hidden_dude • Edited

True.. immutability is hard to achieve with a growing dynamic array. Link list implementations do that better.