Skip to content

Instantly share code, notes, and snippets.

@behrica
Last active January 15, 2023 21:07
Show Gist options
  • Save behrica/533c6456c08236b48c49369800bb2ed5 to your computer and use it in GitHub Desktop.
Save behrica/533c6456c08236b48c49369800bb2ed5 to your computer and use it in GitHub Desktop.
run gist from babashka
{:deps {medley/medley {:mvn/version "1.3.0"}}}
(ns main
(:require [medley.core :as m]))
(defn -main [& _args]
(prn (m/index-by :id [{:id 1} {:id 2}])))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment