clojure-through-code
clojure-through-code copied to clipboard
Examples of Clojure code to explain core aspects of the language - typically evaluated in a REPL
██████╗██╗ ██████╗ ██╗██╗ ██╗██████╗ ███████╗
██╔════╝██║ ██╔═══██╗ ██║██║ ██║██╔══██╗██╔════
██║ ██║ ██║ ██║ ██║██║ ██║██████╔╝█████╗
██║ ██║ ██║ ██║██ ██║██║ ██║██╔══██╗██╔══╝
╚██████╗███████╗╚██████╔╝╚█████╔╝╚██████╔╝██║ ██║███████╗
╚═════╝╚══════╝ ╚═════╝ ╚════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝
████████╗██╗ ██╗██████╗ ██████╗ ██╗ ██╗ ██████╗ ██╗ ██╗
╚══██╔══╝██║ ██║██╔══██╗██╔═══██╗██║ ██║██╔════╝ ██║ ██║
██║ ███████║██████╔╝██║ ██║██║ ██║██║ ███╗███████║
██║ ██╔══██║██╔══██╗██║ ██║██║ ██║██║ ██║██╔══██║
██║ ██║ ██║██║ ██║╚██████╔╝╚██████╔╝╚██████╔╝██║ ██║
╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝
██████╗ ██████╗ ██████╗ ███████╗
██╔════╝██╔═══██╗██╔══██╗██╔════╝
██║ ██║ ██║██║ ██║█████╗
██║ ██║ ██║██║ ██║██╔══╝
╚██████╗╚██████╔╝██████╔╝███████╗
╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝
A collection of Clojure code examples to help demonstrate how the language works and encourage further discovery and experimentation with the language
Usage
Open the project in your favourite Clojure aware editor and start a REPL. Evaluate the code expression by expression to see what value is returned each time.
Feel free to experiement with the code and submit pull requests with additional examples and any corrections.
License
Copyright © 2022 Practicalli
Distributed under the Creative Commons Attribution Share-Alike 4.0 International.