|
|
|
|
|
by danielnesbitt
3427 days ago
|
|
Pure functional languages often do not use the same data structures common in imperative languages. Instead there's an emphasis on persistent structures that copy on write while sharing as much data as possible. For instance, prepending to a linked list results in a new head node, but nothing is actually copied. Appending requires a full copy. A developer has to be aware of where the limitations of these data structures are, but I think that's true of using any library in any language. https://en.wikipedia.org/wiki/Persistent_data_structure |
|