medley
medley copied to clipboard
A lightweight library of useful Clojure functions
Adds ClojureCLR support for source/test files, packaging/dependency management, and CI testing.
I think adding ClojureCLR support would be beneficial, especially in the greater effort to port Clojure(Script) libraries to ClojureCLR which doesn't seem to have nearly as fully developed support in...
First off, this might be out of scope for the project, but I do think it is a powerful addition and still fits under pure, and general purpose. Second, I'm...
Hey @weavejester, I sometimes find myself in the need of this: ``` (defn split-when [pred coll] (lazy-seq (when-let [s (seq coll)] (let [fst (first s) f (complement pred) run (cons...
The humble indexOf -> you have a known small vector or sequence, you are doing ops on it and you want to find a particular element's index. (Because you have...
Wondering if you'd be open to a function `index-and-map-by` generalizing over `index-by` like the following: ```clojure (defn index-and-map-by [kf vf coll] (into {} (map (fn [x] [(kf x) (vf x)]))...
See discussion in #12 Add a 1-argument arity to the following functions, which returns a transducer consuming and producing a sequence of [key value] map-entry pairs, and can be used...
Not infrequently I find myself wanting to to group a collection with a custom collation. Between medley and clojure.core we already have two functions with hard-coded collations: `group-by` uses `conj`...