Join Arthur Ulfeldt for an in-depth discussion in this video Composite Values, part of Learning Clojure.
- [Instructor] And now some of the more useful…composite or compound values that Closure has to offer.…Let's look through some of the collections.…Maps store names and values,…they're called hash tables in a lot of other languages,…they happen to be implemented in trees in Closure,…but, they do the same thing.…Maps are immutable,…if I pass a map to another piece of code,…there is no way that code can change the map…out from under me while I'm working on it.…Despite this, they are still efficient to copy,…to make a slightly modified version of a map,…is efficient, and quick.…
So here's an example of a map,…that maps the keyword key1, to the string value1.…Here's an example of a map,…which maps the number one to 42, the number two to 43,…and the string fish, to the keyword thanks.…As we can see here there's no requirement…that maps contain all the same data structure,…they can have variable numbers of keys,…you can add any key value mapping you want to any map,…they're very flexible.…Next, sets, sets are a lot like maps,…
Arthur Ulfeldt covers the Leiningen build tool and setting up Clojure to work with the IntelliJ IDEA dev environment. He then reviews the basics of the syntax, including functions, expressions, values, macros, strings, and conditionals. He shows how to structure, compile, and deploy Clojure projects in Leiningen, and pull from Clojure's core library. In the final chapters, Arthur explores references and namespaces and points to resources to learn more about Clojure.
- Installing Leiningen
- Configuring IntelliJ IDEA
- Using REPLs to execute code
- Working with simple and composite values
- Mastering Clojure macros
- Exploring Clojure syntax
- Building a Clojure project with Leiningen
- Mapping, filtering, and reducing
- Binding and destructuring data
- Working with identities
Skill Level Intermediate
Java Essential Training for Studentswith Peggy Fisher3h 6m Intermediate
1. First Look at Clojure
2. Exploring the Syntax of Clojure
Conditionals and special forms10m 27s
3. Evaluating Forms
4. Clojure Projects and Leiningen
5. The Core Library
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.