Browse the archive

Page 2 of the blog index.

Latest posts

Recent writing, technical notes and archived essays.

Lesser known Clojure: max-key and min-key

I wonder why max-key and min-key in Clojure are not named max-by and min-by. Pretty sure few people are aware what they actually do. — Bozhidar Batsov (@bbatsov) December 19, 2015 As you can guess max-key function has its opposite...

Read article

Lesser known Clojure: reduce kv

In addition to commonly known reduce function Clojure has its specialized version called reduce-kv. This function is designed to work with associative collections (like map or vector). Here is its signature: where: f is a 3 arguments...

Read article