by hellofunk · 9y ago · 0 comments
I've read that it has both List and Array, yet neither appears to be ideal for proper functional programming; List, as you say, is a linked list, yet it is recommended [0] over Array for functional operations like map, fold, etc -- but you wouldn't normally want linked lists for that sort of thing, esp. if your maps and folds were part of a larger data transformation of composed functions. Does Elm offer anything similar to the structure of ClojureScript's persistent vector?
I have learned that FP without the guts of serious persistent structures is not so good in practice.
[0] https://stackoverflow.com/questions/37707577/array-vs-list-i...
No comments yet.