Re:Toolz: A functional standard library for Python
by Iwan-Zotow on Thursday January 21, 2021 @02:34PM
(#25863099)
Isn't it a true functional way?
[ Parent
| on HN ]
Re:Toolz: A functional standard library for Python
by alentist on Thursday January 21, 2021 @04:36PM
(#25864612)
There are smarter ways to deal with data structures in the functional setting than copying the entire structure over and over again.
See https://en.wikipedia.org/wiki/Purely_functional_data_structu... and Okasaki’s book Purely Functional Data Structures.
Re:Toolz: A functional standard library for Python
by iimblack on Thursday January 21, 2021 @04:13PM
(#25864311)
I could definitely be wrong but I think most functional data structures aren’t fully copied. Instead, they’ll utilize something like a pointer to the data that stayed the same so only the part that changes is “copied”.