The Clojure Padawan
@ClojurePadawan
I be out here learning clojure
You might like
Just finished setting up figwheel to get started with some clojurescript escapades, awesome work on the tutorial @bhauman
Defmulti isa nice bit of magic I just learned. Can't tell you my methods though.
TIL: You can destructure nested maps. As an example: (let [{:keys [a b] {:keys [c]} :x {:keys [] {:keys [d]} :z} :y} {:a 1 :b 2 :x {:c :skip-a-few} :y {:z {:d Integer/MAX_VALUE}}}] [a b c d]) => [1 2 :skip-a-few 2147483647]
TIL: Threading a map through a bunch of updates is way cleaner than updating it in the let bindings over and over. I'm just gonna (let [myself (update-in my-brain [:thinking-area] conj "a lot of IQ")] myself) And now I realize how much of a bruh moment this is.
TIL: update-in > assoc-in. If you don't agree name the place, time and game so we can 1v1 as long as I'm better at the game than you.
TIL: Range includes the first given number, but leaves out the last. I guess it's true that something can be both ranged and deranged at the same time.
You might not wanna feed your maps too much. Mine started being completely random when it over 8 keys.
TIL: You can use functions inside the get-in vector. I'd say it's a key lesson!
TIL: Conj adds to the start of a list, but the end of a vector. Would it kill it to be cons-istent?
United States Trends
- 1. Doran 47.4K posts
- 2. #Worlds2025 83.4K posts
- 3. #T1WIN 43.3K posts
- 4. Faker 61.7K posts
- 5. Good Sunday 55.4K posts
- 6. Silver Scrapes 4,203 posts
- 7. Guma 12.2K posts
- 8. #sundayvibes 3,972 posts
- 9. O God 7,841 posts
- 10. #T1fighting 4,581 posts
- 11. #sundaymotivation 1,449 posts
- 12. Keria 19.1K posts
- 13. Oner 16K posts
- 14. Blockchain 199K posts
- 15. Option 2 4,609 posts
- 16. Vergil 9,153 posts
- 17. yunho 20.4K posts
- 18. OutKast 24.6K posts
- 19. John Denver N/A
- 20. Boots 30.4K posts
Something went wrong.
Something went wrong.