3 ms·
Question for someone experienced with Racket: does Racket offer immutable/persistent data structures?
by raspasov 10y ago
Question for someone experienced with Racket: does Racket offer immutable/persistent data structures?
- atgc 10y agoI'm not sure about persistence, but it definitely has immutable data structures. See e.g. the docs on hash tables: https://docs.racket-lang.org/reference/hashtables.html https://docs.racket-lang.org/reference/hashtables.html As mentioned in the comments here, Racket's documentation is wonderful. I've yet to come across a better mix of technical reference, guiding narrative and a wealth of usage examples.
- cat199 10y agoNot sure on racket specifically if it does out of the box, but as a scheme(-like) language, this can be emulated via closures. Perhaps relatedly, as a scheme(-like), it is tail recursive, implying infnite recursion and can be used in a near-purely-functional way if desired.