Write this accumuator in a functional style

Rustom Mody rustompmody at gmail.com
Thu Jul 13 11:09:42 EDT 2017


Pavol Lisy wrote:
> IMHO problem is doubling size for huge lists. 

> Or waste big memory for huge frozensets. I mean resize it to 2*N if
> its size is just N+1. 

Couple that with the fact that space-time are not unrelated on any modern VM based OS + cache based hw. Doubly so for "managed" languages where gc buys space for time.



More information about the Python-list mailing list