objeck / objeck-lang

Objeck is a modern object-oriented programming language with functional features tailored for machine learning. It emphasizes expression, simplicity, portability, and scalability. The programming environment consists of a compiler, virtual machine, REPL shell, and command line debugger with IDE plugins.
https://objeck.org
Other
154 stars 11 forks source link

What is `Collection.Cache` used for? #442

Closed ghost closed 8 months ago

ghost commented 8 months ago

Please pardon this stupid question. I'm very dumb about DT&Algorithms. How is it differed from other Collection types? For example, Collection.Map and Collection.MultiMap?

Btw, is it ordered or unordered?

objeck commented 8 months ago

The Cache class is used to store/cache X number of items. Consider a website where one wants to cash X number of webpages. The items are unordered.