File tree 2 files changed +5
-6
lines changed
src/day8/re_frame_10x/tools
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 11
11
[com.yahoo.platform.yui/yuicompressor " 2.4.8"
12
12
:exclusions [rhino/js]]
13
13
[zprint " 1.2.7" ]
14
+ [mvxcvi/arrangement " 2.1.0" ]
14
15
[org.clojure/tools.logging " 1.2.4" ]
15
16
[rewrite-clj/rewrite-clj " 1.1.47" ]]
16
17
Original file line number Diff line number Diff line change 1
1
(ns day8.re-frame-10x.tools.datafy
2
2
(:require [clojure.string :as str]
3
3
[clojure.walk :as walk]
4
- [day8.re-frame-10x.inlined-deps.re-frame.v1v3v0.re-frame.loggers :refer [console]]))
4
+ [day8.re-frame-10x.inlined-deps.re-frame.v1v3v0.re-frame.loggers :refer [console]]
5
+ [arrangement.core :as order]))
5
6
6
7
(defn keyboard-event [e]
7
8
{:key (.-key e)
31
32
32
33
(defn deep-sorted-map [m]
33
34
(walk/postwalk
34
- #(if (map? %)
35
- (try (into (sorted-map ) %)
36
- (catch :default _
37
- (do (console :warn " Warning: map has unsortable keys: " %) %)))
38
- %)
35
+ #(cond->> %
36
+ (map? %) (into (sorted-map-by order/rank)))
39
37
m))
40
38
41
39
(defn alias [k ns->alias]
You can’t perform that action at this time.
0 commit comments