This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns map-entries | |
(:import (clojure.lang MapEntry))) | |
(defn map-entries | |
"Returns transducer collecting map-entries from the sequence of keys/values. | |
Map key is `(kf k)` or just key if `kf` is nil. Map value is `(vf k v)` or | |
just value if `vf` is nil. Raises exception in case of odd amount of elements | |
in the input sequence." | |
([] (map-entries nil nil)) | |
([kf] (map-entries kf nil)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns lib.clojure.exception | |
(:require [clojure.test :as test] | |
[lib.clojure-string.core :as string'] | |
[lib.clojure.lang :as lang]) | |
(:import (clojure.lang Associative ExceptionInfo))) | |
(set! *warn-on-reflection* true) | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; The deps.edn file describes the information needed to build a classpath. | |
;; | |
;; When using the `clojure` or `clj` script, there are several deps.edn files | |
;; that are combined: | |
;; - install-level | |
;; - user level (this file) | |
;; - project level (current directory when invoked) | |
;; | |
;; For all attributes other than :paths, these config files are merged left to right. | |
;; Only the last :paths is kept and others are dropped. |
OlderNewer