Join Arthur Ulfeldt for an in-depth discussion in this video Data types, part of Learning Clojure.
- I find Clojure's collection types to be simply more fun…than many of the other languages I use.…Now, let's spend some time going over them.…So, let's start with Maps.…Maps are created with the hash-map function.…It'd be nice if it was just the Map function,…but that name was taken.…So if we call hash-map…and it just takes an alternating set of arguments:…key, value, key, value, key, value.…I've put some commas here between them to help…visually space them out.…Commas are white space enClojure.…
You're free to use them anywhere you want…and you can leave them out.…That call to hash-map results in a map…that maps c to 3, b to 2, a to 1.…Notice that it didn't preserve the order.…Maps makes no guarantees about ordering.…You can add mappings to an existing map…either with the assoc or conj functions.…Assoc takes the map you'd like to add to,…the key you'd like to add under,…and the value that that key should go to.…As you can see, we're adding the key, c,…and the value, 3, to this map.…
Below that, we're doing the same thing with conj.…
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?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
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.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.