Join Arthur Ulfeldt for an in-depth discussion in this video Binding and destructuring, part of Up and Running with Clojure.
- Most places in the Clojure language…that let you define names…also allow you to define names…for portions of a data structure that are passed in.…These are just little shortcuts…and you could accomplish them by writing get…or looking things up in a vector…and then binding names separately.…They're just a convenience…that makes the code easier to read…and a little faster to write.…I want to introduce them here just enough…so that you can spot them when you encounter them in code.…They work most places that introduce names, let bindings,…and function definitions being the most common,…and they're usually used with maps and sequences.…
They can work with most anything.…So, in this example below, in this let expression,…notice we have one name value pair,…A normal let expression might say something…like let A be five.…In this case, in the name position of the name value pair,…I've put a sequence of the symbol A, the symbol B,…the variadic argument symbol ampersand the rest.…So, this means that this is expecting a sequence…
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.