Join Arthur Ulfeldt for an in-depth discussion in this video Mapping, Filtering and Reducing, part of Learning Clojure.
- My favorite operations…in all of Clojure standard library…are mapping, filtering, and reducing.…I simply find these the most fun to work with.…So, let's start with mapping.…Mapping says, change a whole sequence.…Use this function to change every entry in that sequence.…I like being able to say things like…map increment, all the days of the week.…Or, make strings out of this whole sequence of numbers.…Many other such things.…
It just flows nicely.…So mapping is fairly straightforward.…It's first argument is the function you want…to have run on each member of the sequence.…And then, anything that can be converted into a sequence.…So in this first example,…I'm calling the divide function…on every member of the sequence…made out of this vector here.…So if we start to break that down,…when the function call happens,…map is called, map is going to call sequence…on its second argument…to get a sequence out of whatever I gave it.…
In this case I gave it a vector.…So it's going to get the sequence…one, two, three out of that vector.…
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.