Want this course?
Last-in, First-out Access Pattern
If you want to access a collection like a stack, there are two options to choose from: Lists and Vectors. We look at how to use them.
Code is available: lispcast/clojure-collections
You can checkout the code in your local repo with this command:
$CMD git clone https://github.com/lispcast/clojure-collections.git $CMD cd clojure-collections
Entity Usage Pattern
In Clojure, we use the Entity pattern all the time. Usually, it's the first thing we notice when learning Clojure. The Entity pattern essentially means we use a HashMap to represent information about an entity. We look at how that works, and then we go over a variety of the Entity patterns called Variant Entity. We also look at a code smell and an anti-pattern.