Clean Coder Blog
This expression: (1 2) represents the list containing the integers 1 and 2 in that order. If you want an empty list, that’s just (). And the list of the first five letters of the alphabet is just (\a \b \c \d \e).
So let’s learn just a little bit of clojure. This expression: (1 2) represents the list containing the integers 1 and 2 in that order. If you want an empty list, that’s just () . And the list of the first five letters of the alphabet is just (\a \b \c \d \e) . Now you know a lot about the syntax of clojure. Perhaps you think there’s a lot missing. Well, there are a few things missing; but far fewer than you’d think. You might be wondering how you add two numbers. That’s easy, that’s just (+ 1 2) . As it happens that’s also just the list of the function named + followed by a 1 and a 2. You see,
saved by
related reading
- Val on Programming: What makes a good REPL?vvvvalvalval.github.io
- The Clojure Style Guideguide.clojure.style
- Good examples of Clojure macros usage which demonstrate advantages of the language over the mainstream? - Stack Overflowstackoverflow.com
- do’s and don’ts – Digital Digressions by Stuart Sierrastuartsierra.com
- My Clojure Workflow, Reloadedcognitect.com
- Hugging Face GPT with Clojure | Squid's Bloggigasquidsoftware.com
- A half-hour to learn Rustfasterthanli.me
- how I think when I think about programming - alice mazalicemaz.com
- Starting Out - Learn You a Haskell for Great Good!learnyouahaskell.github.io
- What is PLUS times PLUS?youtube.com
- A Lean Syntax Primer — overreactedoverreacted.io
- Operators and Values — Learn TLA+learntla.com