• Skip to main content
  • Skip to footer

PurelyFunctional.tv

  • Learn Clojure
  • About
  • 🛒 Cart
  • Log in
Hybrid Collections

Want this course?

Buy for $75
Download
 Video time: 10m30s
PREVIOUS
NEXT

Want this course?

Buy for $75

Hybrid Collections

Course: Clojure Collections

Updated October 24, 2018

Description
Code

Sometimes a single collection doesn't satisfy all of the access patterns you need. For example, what if you want a collection that remembers order and lets you set values for keys? You will need to construct it out of the existing one.

Buy this course to view the code.

Next Lesson

27 min

Hybrid Types

This is an advanced topic, but interesting nonetheless! Instead of implementing a hybrid using a HashMap, we build our own type. We explore the Clojure implementation of Vector and replicate the methods and interfaces it implements.

Course: Clojure Collections

0 / 34
0 / 34
 
Lessons
 
Introduction to Clojure's Collections
 
5 min 
 
Data structures
 
8 min 
 
Vector collection
 
24 min 
 
HashMap collection
 
30 min 
 
Set collection
 
19 min 
 
List collection
 
12 min 
 
Queue collection
 
11 min 
 
Sorted Map collection
 
11 min 
 
Sorted Set collection
 
7 min 
 
Access patterns
 
8 min 
 
Sequential Access Pattern
 
26 min 
 
Remembering Duplicates Access Pattern
 
16 min 
 
Lookup by key Access Pattern
 
12 min 
 
Associate key and value Access Pattern
 
19 min 
 
Dissociate a key and value Access Pattern
 
4 min 
 
Count the elements Access Pattern
 
6 min 
 
Equality Comparison Access Pattern
 
12 min 
 
Removing an item from a set Access Pattern
 
8 min 
 
Splitting a sequence Access Pattern
 
8 min 
 
Containment Check Access Pattern
 
9 min 
 
First-in, first-out Access Pattern
 
12 min 
 
Last-in, First-out Access Pattern
 
6 min 
 
Usage patterns
 
2 min 
 
Entity Usage Pattern
 
17 min 
 
Index Usage Pattern
 
18 min 
 
Tuple Usage Pattern
 
21 min 
 
Multi-comparison Usage Pattern
 
11 min 
 
Transients
 
11 min 
 
Usage in an Atom
 
17 min 
 
Hybrid Collections
 
11 min 
 
Hybrid Types
 
27 min 
 
Vectors and Lists in syntax
 
6 min 
 
Lazy sequences
 
5 min 
 
Collections vs sequences
 
14 min 

Footer CTA

Level up your Clojure skills

The PurelyFunctional.tv Newsletter is a weekly email that helps you improve your Clojure skills through challenges, tips, and news.

Enter your email address to receive emails about Clojure and Functional Programming. These include the weekly newsletter and occasional offers. You can unsubscribe any time.

Copyright © 2021 LispCast and Eric Normand