Using Clojure Spec in the REPL Hint::Rebel Alias in practicalli/clojure-deps Spec auto-completion Check data conforms to the specification Try examples in the REPL Using Cl...
References Discussions and feedback Warning::Book re-write in progress Hint::Quote: Adrian Cockcroft. Cloud Architect, Netflix Creative commons license Clojure is a simpl...
Does a value conform to a specification? Require the Clojure spec library Using conform Does a value conform to a specification? clojure.spec.alpha/conform takes two argumen...
clojure.spec adds documentation to function definitions clojure.spec adds documentation to function definitions Using doc to show the spec ( ns practicalli . clojure (: r...
Creating Clojure projects Hint::Install clj-new and other aliases Create a project with clj-new and the app template Hint::Install rebel and other aliases NOTE::Try the proje...
Emacs and Spacemacs Install Emacs and Spacemacs Install Spacemacs is a community configuration bringing Emacs and Vim together. Spacemacs uses a mnemonic menu system that m...
Defining aliases to do more with Clojure tools Hint::practicalli/clojure-deps-edn adds common aliases and tools Using an alias Hint::Only one main namespace An alias for a comm...
Create a Leiningen project Hint::Alternatively clone the github repository Updating Clojure version and licence TODO::Add Clojure CLI project configuration Create a Leininge...
Literal values Literal values Sets can be used as predicate functions returning true if the value is within the set Checking valid playing cards Define a namespace for the pa...
Higher order functions Higher order functions Higher order functions are common in Clojure and spec provides fspec to support spec’ing them. ( defn value - added - tax [ ...