I found that this lesson did not contain anything new, but it did build upon concepts explored earlier
Please ensure you have a clojure environment running locally - see Getting Started Guide if you need to set one up.
Run the following comamnds from the root of the 15-slide-in-on-scroll
1. Run the projcet
clj -M:dev
-M
assumes your using a Clojure Tools version greater than1.10.3.855
. Not sure what version your on? Runclj -h
and you should see output near the top of the output like:
➜ clj -h
Version: 1.10.3.855 # this is the version your on
2. Visit the app
In this case we are using the global function debounce
and passing our check-slide
function to it.
We are not modifying the collection, we are only getting side effects. for
can also be used for side effects, but it is going to return another list and this is not what we want to happen, so we use doseq
. for
is what's known as a list comprehension
.