|
1 |
| -(ns mori |
| 1 | +(ns mori.extra |
2 | 2 | (:refer-clojure :exclude
|
3 |
| - [count distinct empty first second next rest seq conj cons find nth last assoc dissoc |
4 |
| - get-in update-in assoc-in fnil disj pop peek hash get empty? reverse |
| 3 | + [distinct first second next rest seq cons last |
| 4 | + get-in update-in assoc-in fnil |
5 | 5 | take drop take-nth partition partition-all partition-by iterate
|
6 |
| - into merge merge-with subvec |
| 6 | + merge-with |
7 | 7 | take-while drop-while group-by
|
8 | 8 | interpose interleave concat flatten
|
9 |
| - keys select-keys vals |
10 | 9 | prim-seq lazy-seq keep keep-indexed
|
11 |
| - map mapcat map-indexed reduce reduce-kv filter remove some every? equiv |
| 10 | + map mapcat map-indexed reduce reduce-kv filter remove some every? |
12 | 11 | transduce eduction sequence dedupe completing
|
13 |
| - range repeat repeatedly sort sort-by |
14 |
| - into-array |
| 12 | + repeat repeatedly |
15 | 13 | partial comp juxt
|
16 | 14 | identity constantly
|
17 |
| - list vector vec array-map hash-map zipmap set sorted-set keyword symbol |
| 15 | + zipmap sorted-set keyword symbol |
18 | 16 | sorted-set-by sorted-map sorted-map-by
|
19 |
| - sum inc dec even? odd? subseq compare |
| 17 | + sum inc dec even? odd? subseq |
20 | 18 | meta with-meta vary-meta
|
21 | 19 | apply])
|
22 |
| - (:use-macros [mori.macros :only [make-inspectable mori-export]]) |
| 20 | + (:require-macros |
| 21 | + [mori.macros :refer [mori-export make-inspectable]]) |
23 | 22 | (:require [clojure.set :as set]))
|
24 | 23 |
|
25 | 24 | (mori-export apply cljs.core/apply)
|
26 |
| -(mori-export count cljs.core/count) |
27 | 25 | (mori-export distinct cljs.core/distinct)
|
28 |
| -(mori-export empty cljs.core/empty) |
29 | 26 | (mori-export first cljs.core/first)
|
30 | 27 | (mori-export second cljs.core/second)
|
31 | 28 | (mori-export next cljs.core/next)
|
32 | 29 | (mori-export rest cljs.core/rest)
|
33 | 30 | (mori-export seq cljs.core/seq)
|
34 |
| -(mori-export conj cljs.core/conj) |
35 | 31 | (mori-export cons cljs.core/cons)
|
36 |
| -(mori-export find cljs.core/find) |
37 |
| -(mori-export nth cljs.core/nth) |
38 | 32 | (mori-export last cljs.core/last)
|
39 |
| -(mori-export assoc cljs.core/assoc) |
40 |
| -(mori-export dissoc cljs.core/dissoc) |
41 | 33 | (mori-export getIn cljs.core/get-in)
|
42 | 34 | (mori-export updateIn cljs.core/update-in)
|
43 | 35 | (mori-export assocIn cljs.core/assoc-in)
|
44 | 36 | (mori-export fnil cljs.core/fnil)
|
45 |
| -(mori-export disj cljs.core/disj) |
46 |
| -(mori-export pop cljs.core/pop) |
47 |
| -(mori-export peek cljs.core/peek) |
48 |
| -(mori-export hash cljs.core/hash) |
49 |
| -(mori-export get cljs.core/get) |
50 | 37 | (mori-export hasKey cljs.core/contains?)
|
51 |
| -(mori-export isEmpty cljs.core/empty?) |
52 |
| -(mori-export reverse cljs.core/reverse) |
53 | 38 | (mori-export take cljs.core/take)
|
54 | 39 | (mori-export drop cljs.core/drop)
|
55 | 40 | (mori-export takeNth cljs.core/take-nth)
|
56 | 41 | (mori-export partition cljs.core/partition)
|
57 | 42 | (mori-export partitionAll cljs.core/partition-all)
|
58 | 43 | (mori-export partitionBy cljs.core/partition-by)
|
59 | 44 | (mori-export iterate cljs.core/iterate)
|
60 |
| -(mori-export into cljs.core/into) |
61 |
| -(mori-export merge cljs.core/merge) |
62 | 45 | (mori-export mergeWith cljs.core/merge-with)
|
63 |
| -(mori-export subvec cljs.core/subvec) |
64 | 46 | (mori-export takeWhile cljs.core/take-while)
|
65 | 47 | (mori-export dropWhile cljs.core/drop-while)
|
66 | 48 | (mori-export groupBy cljs.core/group-by)
|
|
80 | 62 | (defn ^:export lazySeq [f]
|
81 | 63 | (new cljs.core/LazySeq nil f nil nil))
|
82 | 64 |
|
83 |
| -(mori-export keys cljs.core/keys) |
84 |
| -(mori-export selectKeys cljs.core/select-keys) |
85 |
| -(mori-export vals cljs.core/vals) |
86 | 65 | (mori-export primSeq cljs.core/prim-seq)
|
87 | 66 | (mori-export map cljs.core/map)
|
88 | 67 | (mori-export mapIndexed cljs.core/map-indexed)
|
|
96 | 75 | (mori-export some cljs.core/some)
|
97 | 76 | (mori-export every cljs.core/every?)
|
98 | 77 | (mori-export equals cljs.core/=)
|
99 |
| -(mori-export range cljs.core/range) |
100 | 78 | (mori-export repeat cljs.core/repeat)
|
101 | 79 | (mori-export repeatedly cljs.core/repeatedly)
|
102 |
| -(mori-export sort cljs.core/sort) |
103 |
| -(mori-export sortBy cljs.core/sort-by) |
104 |
| -(mori-export intoArray cljs.core/into-array) |
105 | 80 | (mori-export subseq cljs.core/subseq)
|
106 | 81 | (mori-export dedupe cljs.core/dedupe)
|
107 | 82 |
|
|
114 | 89 |
|
115 | 90 | ;; constructors
|
116 | 91 |
|
117 |
| -(mori-export list cljs.core/list) |
118 |
| -(mori-export vector cljs.core/vector) |
119 |
| -(mori-export vec cljs.core/vec) |
120 |
| -(mori-export hashMap cljs.core/array-map) |
121 |
| - |
122 |
| -(mori-export set cljs.core/set) |
123 | 92 | (mori-export sortedSet cljs.core/sorted-set)
|
124 | 93 | (mori-export sortedSetBy cljs.core/sorted-set-by)
|
125 | 94 | (mori-export sortedMap cljs.core/sorted-map)
|
|
171 | 140 | (mori-export gte cljs.core/>=)
|
172 | 141 | (mori-export lt cljs.core/<)
|
173 | 142 | (mori-export lte cljs.core/<=)
|
174 |
| -(mori-export compare cljs.core/compare) |
175 | 143 |
|
176 | 144 | ;; HOFs
|
177 | 145 |
|
|
187 | 155 |
|
188 | 156 | (defn ^:export juxt [& fns]
|
189 | 157 | (fn [& args]
|
190 |
| - (intoArray (map #(cljs.core/apply % args) fns)))) |
| 158 | + (into-array (map #(cljs.core/apply % args) fns)))) |
191 | 159 |
|
192 | 160 | (defn ^:export knit [& fns]
|
193 | 161 | (fn [args]
|
194 |
| - (intoArray (map #(% %2) fns args)))) |
| 162 | + (into-array (map #(% %2) fns args)))) |
195 | 163 |
|
196 | 164 | ;; Useful fns
|
197 | 165 |
|
|
0 commit comments